Bug 56221 - onbeforeunload is broken for framesets if you use document.write
Summary: onbeforeunload is broken for framesets if you use document.write
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-11 13:47 PST by Holger Hees
Modified: 2023-11-08 11:04 PST (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 Feross Aboukhadijeh 2013-05-31 19:55:40 PDT
Confirmed. Please fix.