Bug 56221 - onbeforeunload is broken for framesets if you use document.write
: onbeforeunload is broken for framesets if you use document.write
Status: UNCONFIRMED
Product: WebKit
Classification: Unclassified
Component: HTML DOM
: 528+ (Nightly build)
: PC Linux
: P2 Normal
Assigned To: Nobody
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-11 13:47 PST by Holger Hees
Modified: 2013-05-31 19:55 PDT (History)
8 users (show)

See Also:


Attachments
change framecontent with document.write (1.75 KB, application/zip)
2011-03-11 13:47 PST, Holger Hees
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Hees 2011-03-11 13:47:45 PST
Created attachment 85524 [details]
change framecontent with document.write

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

all works fine if i change the frame content by modifying the frame src.

but when i change the frame content with document.open(..., 'replace'), document.write(...), document.close the beforeunload handler is not fired.

tested in chrome 10. and chrome 10 works with all other testcases.
Comment 1 PeerCDN 2013-05-31 19:55:40 PDT
Confirmed. Please fix.