views:

985

answers:

1

Let say I have two pages. One of them contains another one inside as iframe. If you subscribe to onbeforeunload event on the parent page, then this event doesn't triggers if you close tab when iframe is in focus. I suppose it is a bug as written here: Google Chrome issues

But I mentioned that, for example, google docs handle this situation. Can anyone give me a solution? Important note that I have no actual access to the iframe content as it is a third party html editor (WYSIWYG).

+1  A: 

this is still an issue for all webkit browsers (safari, chrome, etc)

https://bugs.webkit.org/show_bug.cgi?id=21699

has anyone found a way to solve this issue?

jony kalavera