Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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.


This was solved many years ago by having dialogs scoped to the active tab. You can just close the tab.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: