It was 'dealt with' by the woman in those days, or, if she told her father, brother, or other male relative, they would 'deal with it' for her.
I dealt with it by leaving my Saturday job. You really need to be over about 50 and to have been in the workplace in the 70s to understand just how prevalent it was. Which is not to say it was acceptable then, just as it is not acceptable now.
But someone who perpetarated that sort of behaviou nowadays could (and should) expect to be investigated for assault, whereas, in those days, the perpetrator would have no expectation whatsoever that criminal charges may be brought.
So, just as once upon a time, in the dark ages, people did not challenge slavery, or capital punishment, or the fact that a woman was the chattel of her husband, or that homosexuality was once illegal, or that smoking opium was once acceptable , society has moved on and holds these things quite rightly in abhorrance. We should not try people for historical crimes by the very different standards in today's society.
I do however think that war crimes, for instance, or murders should be prosecuted relentlessly to the end of the perpetrators life. These were heinous crimes when they were committed and continue to be so.