[Webkit-unassigned] [Bug 270736] New: 3rd level iframe does not fire load event
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Mar 9 02:25:13 PST 2024
https://bugs.webkit.org/show_bug.cgi?id=270736
Bug ID: 270736
Summary: 3rd level iframe does not fire load event
Product: WebKit
Version: Safari 17
Hardware: Mac (Apple Silicon)
OS: macOS 14
Status: NEW
Severity: Normal
Priority: P2
Component: DOM
Assignee: webkit-unassigned at lists.webkit.org
Reporter: vojacem at gmail.com
3rd level iframe behaves differently than others.
Load events of iframe1 and iframe2 fire normally, iframe3 load event does not.
Steps to reproduce:
1. Open `about:blank`
2. Run following code
(async () => {
const iframe1 = document.createElement("iframe");
iframe1.setAttribute("srcdoc", "");
document.body.append(iframe1);
await new Promise((resolve) =>
iframe1.addEventListener("load", resolve, { once: true })
);
const iframe2 = document.createElement("iframe");
iframe2.setAttribute("srcdoc", "");
iframe1.contentDocument.body.append(iframe2);
await new Promise((resolve) =>
iframe2.addEventListener("load", resolve, { once: true })
);
const iframe3 = document.createElement("iframe");
iframe3.setAttribute("srcdoc", "");
iframe2.contentDocument.body.append(iframe3);
await new Promise((resolve) =>
iframe3.addEventListener("load", resolve, { once: true })
);
console.log("loaded");
})();
--
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/20240309/137f1112/attachment-0001.htm>
More information about the webkit-unassigned
mailing list