RESOLVED DUPLICATE of bug 305276270736
3rd level iframe does not fire load event
https://bugs.webkit.org/show_bug.cgi?id=270736
Summary 3rd level iframe does not fire load event
vojacem
Reported 2024-03-09 02:25:13 PST
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"); })();
Attachments
10 iframe levels - srcdoc (924 bytes, text/html)
2024-03-11 03:43 PDT, vojacem
no flags
vojacem
Comment 1 2024-03-11 03:43:22 PDT
Created attachment 470283 [details] 10 iframe levels - srcdoc This document shows how WebKit renders just 2 levels, while other browsers render all the levels.
Radar WebKit Bug Importer
Comment 2 2024-03-16 03:26:14 PDT
Ahmad Saleem
Comment 3 2026-01-11 01:25:32 PST
Test on 305423@main and it seems to work now. Fixed with 305421@main (confirmed with reverting and we fail without fix). *** This bug has been marked as a duplicate of bug 305276 ***
Note You need to log in before you can comment on or make changes to this bug.