Comment #3 on issue 11647 by [email protected]: onbeforeunload is  
triggered twice when closing window by window.close().
http://code.google.com/p/chromium/issues/detail?id=11647

Sorry, I wasn't clear enough.  Step 2 is actually that  
RenderWidget::DoDeferredClose()
sends a ViewHostMsg_Close message to the browser.  That means the browser  
goes
through the usual close routine, including the unload events (a second  
time).

Should we be doing a ClosePageIgnoringUnloadEvents when the renderer sends a
ViewHostMsg_Close?  Or are there cases when that message will be sent when  
WebKit
hasn't already done the unload events?

--
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to