Comment #16 on issue 4422 by Aaron.Cicali: onbeforeunload related bug (both
Chrome and Safari)
http://code.google.com/p/chromium/issues/detail?id=4422
Chrome (haven't tested Safari) seems to have a problem with reloads of the
page in
regards to the onbeforeunload event.
This code:
window.onbeforeunload = function(){
return "You will lose unsaved progress";
};
WILL INDEED cause Chrome to confirm the window close with the user. The
problem
arises if the event is not a window close, but a reload (which IS
technically a
window close). On reload, Chrome issues the confirm dialog, but if the
users clicks
"stay on this page" Chrome fires up it's loading animation on the tab, as
well as the
loading cursor. This "loading" never seems to end (or at least it outlasts
my
patience).
Thanks for reading.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---