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 Loading | Assignee: | 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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |