Open GoogleCodeExporter opened 9 years ago
This is most likely a problem in chrome. I suspect it may have something to do
with this:
https://code.google.com/p/chromium/codesearch#chromium/src/chrome/browser/preren
der/prerender_manager.cc&sq=package:chromium&l=628&dr=C&ct=rc&cd=5&q=NeedToFireB
eforeUnload
https://code.google.com/p/chromium/issues/detail?id=304932
I found a workaround for my case. Instead of adding a native 'beforeunload'
listener as a hook between javascript 'beforeunload' and 'unload' event
listeners, to prevent 'unload' event listeners from being called if the user
aborted the closing in one of the tabs, I now simulate a navigation to
'about:blank', which I abort in CefLoadHandler::OnLoadingStateChange. But since
CefJSDialogHandler::OnBeforeUnloadDialog() is called between them (if called at
all), I have the opportunity to ask the user whether it's OK to close each tab
(that requests this) without actually closing any of them, and in the end
either close all of them or none.
You may delete this issue.
Original comment by elenabaj...@gmail.com
on 17 Mar 2014 at 9:01
CEF is transitioning from Google Code to Bitbucket project hosting. If you
would like to continue receiving notifications on this issue please add
yourself as a Watcher at the new location:
https://bitbucket.org/chromiumembedded/cef/issue/1230
Original comment by magreenb...@gmail.com
on 14 Mar 2015 at 3:30
Original issue reported on code.google.com by
elenabaj...@gmail.com
on 13 Mar 2014 at 5:10