2 ms·
What if instead of disabling alert etc. browsers just changed their appearance so that it doesn’t look like a system dialog? Make it equivalent to something use
by armchairhacker 5y ago
What if instead of disabling alert etc. browsers just changed their appearance so that it doesn’t look like a system dialog? Make it equivalent to something users could replicate with pure DOM manipulation.
That would prevent tricking users into thinking the alert was a system thing or spamming them with unblockable popups (the alert would only freeze the site not the browser), without breaking any sites.
- brundolf 5y agoI don't think its appearance is part of the problem, and at least on desktop I think it already only blocks it's own website and not the whole browser
- flemhans 5y agoBut still, if they mapped alert calls to being something like a <div> overlay (which you can still do in the iframe), wouldn't it solve the problem without breaking compatibility?