Bug 56221

Summary: onbeforeunload is broken for framesets if you use document.write
Product: WebKit Reporter: Holger Hees <holger.hees>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: UNCONFIRMED ---    
Severity: Normal CC: abarth, ap, bedney, darin, esprehn, fishd, rniwa, schylernolan40
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
change framecontent with document.write none

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.