[Webkit-unassigned] [Bug 187822] unhandledrejection event doesn't fire across realms

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jul 19 15:19:08 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=187822

--- Comment #1 from Timothy Gu <timothygu99 at gmail.com> ---
There is certainly some ambiguity in the HTML spec about what the right global object the event is fired on should be (should it be on frame? or window?) [1]. An enhanced version of reproduction case tries to handle this uncertainty by permitting both possibilities:

<iframe></iframe>
<script>
const frame = frames[0];
window.onunhandledrejection = () => { alert("Rejected!"); };
frame.onunhandledrejection = () => { alert("Rejected!"); };
frame.Promise.reject();
</script>

Yet, even in this case, the message is not shown.

As an additional data point, with this HTML sample, the "Rejected!" message is shown as soon as I try to launch Web Inspector.

[1]: https://github.com/whatwg/html/issues/958

-- 
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/20180719/940ed953/attachment.html>


More information about the webkit-unassigned mailing list