Bug 41730

Summary: Injected scripts cannot observe beforeload events from elements that start loading before they are inserted into the DOM.
Product: WebKit Reporter: Andy Estes <aestes>
Component: Page LoadingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Enhancement CC: aestes, aroben, bweinstein, darin, gavinp, hyatt
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   

Andy Estes
Reported 2010-07-06 19:28:27 PDT
Injected scripts need a way to observe beforeload events for elements created outside of the DOM then inserted on load. For instance, the beforeload event for the following image will not be observable by an injected script: var img = new Image(); img.src = ...; img.onload = function() { parent.appendChild(img); }; One solution is to have beforeload events from fragments propagate to the document element. This would allow document-level beforeload listeners to respond to beforeload events from fragments, but would cause beforeload event propagation to diverge from other DOM events.
Attachments
Note You need to log in before you can comment on or make changes to this bug.