WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
41730
Injected scripts cannot observe beforeload events from elements that start loading before they are inserted into the DOM.
https://bugs.webkit.org/show_bug.cgi?id=41730
Summary
Injected scripts cannot observe beforeload events from elements that start lo...
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
Add attachment
proposed patch, testcase, etc.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug