| Summary: | img load event forgets img target when passed through Promise | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ben <bbirch> |
| Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW --- | ||
| Severity: | Normal | CC: | ahmad.saleem792, ap, karlcow, rniwa, sam |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
|
Description
Ben
2015-03-22 18:40:37 PDT
Minimal test case
(new Promise( function( resolve ) {
var i = document.createElement("IMG");
i.onload = function( event ) {
console.log("onload", event.target ); // -> <img ...>
resolve(event);
};
i.src = "http://i.imgur.com/waV028T.jpg";
})).then( function( resolved_event ) {
console.log( resolved_event.target ); // -> null
});
Mass move bugs into the DOM component. |