News for hackers. Stuff that matters.
Re:Canistilluse.com by ricardobeat on Thursday August 26, 2021 @03:13AM (#28311586)
I wonder what is user-hostile about it. Users have no concept of the event loop.

Can’t remember being harmed by an alert() since forever. Last time was probably six or seven years ago when pop-under ads where still a thing.

Re:Canistilluse.com by travisd on Thursday August 26, 2021 @03:55AM (#28311860)
Alert (essentially) blocks the main UI thread. This means that if you have a while(true){alert} kind of thing, it can be impossible to exit the page since you first have to exit the dialogue before you can take any other action (but of course the dialogue is immediately retriggered). This is better nowadays, but can still cause issues.
Re:Canistilluse.com by another-dave on Thursday August 26, 2021 @05:31AM (#28312554)
I'd love to see figures on how many people this hits in the wild, especially since you have the "prevent this site creating more dialogs" option.
Re:Canistilluse.com by ricardobeat on Thursday August 26, 2021 @08:37PM (#28322935)
This was solved many years ago by having dialogs scoped to the active tab. You can just close the tab.