[Webkit-unassigned] [Bug 142954] img load event forgets img target when passed through Promise
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Mar 22 19:41:54 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=142954
--- Comment #1 from Ben <bbirch at aconex.com> ---
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
});
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150323/c35c46a5/attachment-0002.html>
More information about the webkit-unassigned
mailing list