[Webkit-unassigned] [Bug 12469] onUnload event does not fire when user close window
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Feb 24 16:00:47 PST 2008
http://bugs.webkit.org/show_bug.cgi?id=12469
julien.chaffraix at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |julien.chaffraix at gmail.com
------- Comment #2 from julien.chaffraix at gmail.com 2008-02-24 16:00 PDT -------
> But the event fail to fire when user close the window. It is well known that
> closing window also requires unloading of document, so it would be fine if
> Safari can also support this feature as it is already implemented in Firefox
> and IE.
I have done some debugging and the event is dispatched when closing the window.
The issue is that the listener try to call window.alert and fails in
WebChromeClient::runJavaScriptAlert because the UIDelegate is null.
The cause is that Cocoa calls (void)setUIDelegate:delegate (in
WebKit/mac/WebView/WebView.mm) to set it to null *before* sending the unload
event.
My knowledge of the mac port is quite limited so I do not who to blame (Cocoa
or WebKit)
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list