[Webkit-unassigned] [Bug 19418] onbeforeunload is broken for framesets

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 18 16:03:51 PST 2010


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





--- Comment #23 from pablo <pablo.platt at gmail.com>  2010-11-18 16:03:51 PST ---
We need the beforeunload event on iframes in addition to the unload event from the same reasons we need both on any page.

The events serve different purpose.
Code in the beforeunload event listener can effect the request while code in the unload event listener can't.
For example, if we set a cookie in the beforeunload listener, it'll be sent with that request but if we set the cookie in the unload listener, it'll only effect the next request.

If the parent and the iframe are both from the same origin, there is no security issue.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list