Hacker News new | ask | show | jobs
by stephenr 3850 days ago
Safari has actually changed behaviour so alert/prompt/confirm dialogs are not modal outside of the tab - you can switch to other tabs and I believe even close the window/tab.

They've also been restyled to make it obvious they're a prompt from the website not from safari itself.

Also, there are legitimate uses for this functionality, so as with many things I think the solution is not to remove the functionality, just improve the implementation.

2 comments

> Safari has actually changed behaviour so alert/prompt/confirm dialogs are not modal outside of the tab - you can switch to other tabs and I believe even close the window/tab.

Firefox does this too.

Chrome did this when it originally shipped, by rendering each tab in its own Windows desktop (in the same way that the lock screen is a separate desktop). For some reason they removed that functionality, and dialogs are now modal across all tabs.
... and now click on another tab.
This is also the way prompts happen on mobile Safari and iOS.