Files
tubestation/docshell/test/navigation/frame_recursive_dynamic.html
Andreas Farre af21a5551a Bug 1909022 - Allow more recursive load checks. r=smaug,necko-reviewers,valentin
Don't limit recursive checks to only happen for original src
loads. They're very likely to be loads of 'about:blank' and later
followed by the actual load. Make sure to check the following loads as
well.

Differential Revision: https://phabricator.services.mozilla.com/D222485
2024-09-18 09:46:55 +00:00

9 lines
316 B
HTML

<script>
addEventListener("load", () => {
let e = document.createElement("iframe");
e.id = "dynamic";
document.body.appendChild(e); // append before setting source, forcing load of about:blank
e.src = window.location.href; // set src to ourselves to start recursing
}, { once: true });
</script>