News for hackers. Stuff that matters.
Re:Moral injury can occur in many contexts and populations, ... by ehnto on Tuesday February 22, 2022 @08:55PM (#30436615)
When someone tries to navigate away they wanted to stop them. A real world analogue would be if I tried to leave a store and someone blocked my way to try and make me buy something.

That's insane behavior, I don't owe your business or site anything, least of all my time. Those are the kindest words I can find for that behavior.

Re:Moral injury can occur in many contexts and populations, ... by gruez on Tuesday February 22, 2022 @09:07PM (#30436707)
>A real world analogue would be if I tried to leave a store and someone blocked my way to try and make me buy something.

That'd depend on the implementation behavior. If it's using window.onbeforeunload, yeah I guess it's kind of like someone blocking you when you try to leave, although you can easily walk around them (on most browsers if you try to close the tab and the modal shows up, and you try to close the tab again it will override the modal). However, there's also another type where it tracks the location of your cursor, and shows a popup when it leaves the content area (indicating that your mouse is going to close the tab or go back). In that case it's not really blocking anything, and much more analogous to a salesperson saying "before you go" as you're walking out the door.

Re:Moral injury can occur in many contexts and populations, ... by lazide on Tuesday February 22, 2022 @09:37PM (#30436903)
Either of these behaviors is equivalent to someone standing in front of the door and trying to harass me when I leave.

Which is a solid ‘no thanks, not coming here again’ from me.

Re:Moral injury can occur in many contexts and populations, ... by marssaxman on Tuesday February 22, 2022 @09:53PM (#30437016)
> much more analogous to a salesperson saying "before you go" as you're walking out the door.

I would try to avoid going back to that store.

Re:Moral injury can occur in many contexts and populations, ... by zestyping on Tuesday February 22, 2022 @10:34PM (#30437270)
I would never go back to that store and I would tell my friends not to shop there.
Re:Moral injury can occur in many contexts and populations, ... by evan_ on Tuesday February 22, 2022 @09:03PM (#30436676)
But assuming it’s just a div that appears when you mouse off at the top, it doesn’t actually do anything to stop them. It’s not outrageous for a shopkeeper to say “don’t go!” or something like that as you’re leaving.

It’s annoying and tacky but it’s not analogous to being held hostage.

Re:Moral injury can occur in many contexts and populations, ... by nickthegreek on Tuesday February 22, 2022 @09:08PM (#30436716)
In the olden days, a website could pop up a dialog box that would lock browser interaction til it was dealt with. It was abused. A lot. This was way prior to 2012 tho.
Re:Moral injury can occur in many contexts and populations, ... by menzoic on Tuesday February 22, 2022 @09:12PM (#30436759)
You've never seen this? When someone clicks to close a browser tab you can stop the tab from closing by adding a handler to the onbeforeunload() event.
Re:Moral injury can occur in many contexts and populations, ... by gruez on Tuesday February 22, 2022 @09:28PM (#30436856)
And that can be bypassed by closing the tab again.
Re:Moral injury can occur in many contexts and populations, ... by lazide on Tuesday February 22, 2022 @09:36PM (#30436898)
Yup, pretty terrible.
Re:Moral injury can occur in many contexts and populations, ... by addaon on Tuesday February 22, 2022 @09:12PM (#30436756)
2012. A modal dialog was probably a javascript alert(), which at the time was model for the whole browser and would prevent navigation until dismissed.
Re:Moral injury can occur in many contexts and populations, ... by gruez on Tuesday February 22, 2022 @09:29PM (#30436862)
I just tested with an older version of firefox (10.0, released January 31, 2012), and it had non-modal alert() dialogs.
Re:Moral injury can occur in many contexts and populations, ... by adhesive_wombat on Wednesday February 23, 2022 @02:27AM (#30438605)
While I agree, do remember that some patterns can and do extend to the physical.

Many stores do indeed make it hard to leave without buying, for example by having no direct route to the exit: you have to squeeze through the tills awkwardly. It's probably in the name of loss prevention, but it's also a disincentive to leave without a purchase.

Actually, nearly everything about a supermarket is carefully designed for extracting money from you, from product placement, to layout, need to have a loyalty card to access discounts, even perhaps having discounts in the first place (as opposed to selling at a lower regular price), multipacks driving food and packaging waste, etc etc etc.

Re:Moral injury can occur in many contexts and populations, ... by itronitron on Wednesday February 23, 2022 @02:29AM (#30438618)
Best Buy used to do something similar in their retail stores to paying customers. A bouncer at the exit would usually stop people and check receipts against the merchandise they were leaving with. It's a great way for a company to show that it has no trust for its customers and that it hopes they don't come back.