[Webkit-unassigned] [Bug 218361] New: JS Promises in detached iframes do not settle
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Oct 29 15:52:29 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=218361
Bug ID: 218361
Summary: JS Promises in detached iframes do not settle
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: cdumez at apple.com
JS Promises in detached iframes do not settle:
===
<!doctype html>
<title>Test that the promise from detached iframes do get resolved.</title>
<body></body>
<script>
frame = document.createElement('iframe');
document.body.appendChild(frame);
frame.contentWindow.Promise.resolve("test").then(() => {
alert("Resolved! URL is: " + document.URL);
});
frame.remove();
</script>
===
I see an alert in Chrome and Firefox (with the URL being the top document URL). No alert in Safari.
This is causing issues with our DOM API returning promises as well.
--
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/20201029/7002e00d/attachment.htm>
More information about the webkit-unassigned
mailing list