[webkit-qt] JavaScript window.onbeforeunload event not appearing

Stan Pensak Stan.Pensak at mathworks.com
Wed Mar 27 08:47:41 PDT 2013

Hi, working with a build of Qt 4.8.4, our JavaScript developers have complained that their code does not receive unload events (they're using dojo.addOnUnload but I know that this is triggered from window.onbeforeunload), when we destroy a QWebView, or even when we change its URL.  I have debugged a little and it looks like events are being dispatched from FrameLoader::stopLoading(), which itself is called from FrameLoader::closeURL(), but nobody is listening to them to pass them on to JavaScript.

In comparison, the Chrome and Safari browsers on my Windows system do successfully invoke the dojo.addOnUnload callbacks.

Is this a known issue?

Stan Pensak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-qt/attachments/20130327/a75720b7/attachment.html>

More information about the webkit-qt mailing list