Bug 15652

Summary: WebKit fires an unload event when an iframe element is removed from the DOM; other browsers don't.
Product: WebKit Reporter: Kevin Decker <kdecker>
Component: Page LoadingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ap, cshu, jiewen_tan, rboucher, rniwa, syoichi, tom, tony
Priority: P2    
Version: 523.x (Safari 3)   
Hardware: Mac   
OS: OS X 10.4   
Bug Depends on: 13574    
Bug Blocks:    
Attachments:
Description Flags
test case none

Description Kevin Decker 2007-10-23 17:33:32 PDT
Safari fires an unload event when an iframe element is removed from the DOM; other browsers don't.
Comment 1 Ojan Vafai 2011-03-02 23:24:00 PST
Created attachment 84524 [details]
test case

It looks like Opera and IE do not fire unload, but WebKit and Gecko do. Noone appears to fire beforeunload (unless my test is borked). I'd be OK with making WebKit match IE if we dont' believe there to be a compatibility concern.
Comment 2 Ryosuke Niwa 2011-04-20 12:41:56 PDT
This bug may block the 53031 as the current work in progress patch there hits a crash on editing/style/iframe-onload-crash-mac.html