4 ms·
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 f
by travisd 5y ago
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.
- another-dave 5y agoI'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.
- ricardobeat 5y agoThis was solved many years ago by having dialogs scoped to the active tab. You can just close the tab.