[whatwg] prompts, alerts and showModalDialog during beforeunload/unload events

Mike Hearn mike at plan99.net
Mon Feb 15 05:37:01 PST 2010


Browsers could solve the editor use case by treating "close tab" as
"hide tab" for a minute or two before actually shutting down the page.

Then the problem becomes, how do you make it obvious to users that
they can get their work back by pressing a magic button somewhere?

The modal quit loop is frequently used to try and make people download
malware. It'd be nice to eliminate it in a backwards compatible
manner.



More information about the whatwg mailing list