[webkit-dev] The case for disallowing alerts in unload, redux

Sreeram Ramachandran sreeram at chromium.org
Sun Jun 26 09:34:49 PDT 2011


We've discussed this in the past
(https://lists.webkit.org/pipermail/webkit-dev/2011-April/016431.html).
That thread ended with a call for data. Today, I bring examples and
statistics.

Briefly, from a histogram we added a while ago, I find that 2.3% of
all users encounter at least one such modal dialog every week. This is
much larger than I expected. I think it means that it's not just web
developers who encounter them while debugging their pages. To me, this
makes a very strong case for disallowing them.

Here are some examples of sites that show an alert when their pages
are unloaded:
http://ddl.vidplayer.net/
http://www.buenosprofesionales.com/
http://www.watchsaleshop.com/
http://52-teurseu.blogspot.com/
http://aaz-armor.blogspot.com/

The last two sites above are just two examples out of hundreds of such blogs.

Of course, alerts are also used for debugging. The proposed patch in
https://bugs.webkit.org/show_bug.cgi?id=56397 turns alerts into
console messages. Console messages can now be made to persist across
page loads, so I think this helps address the debugging use case.


More information about the webkit-dev mailing list