blob: b008cf2987a83c3b1d87f350962990f503f60db4 [file] [log] [blame]
<script>
if (window.testRunner)
testRunner.dumpAsText();
</script>
<iframe srcdoc='
<script type="module">
if (!localStorage["step"]) {
localStorage["step"] = "reload1";
window.parent.location.reload();
} else if (localStorage["step"] === "reload1") {
localStorage["step"] = "reload2";
window.parent.location.reload();
} else {
window.parent.document.querySelector("iframe").remove();
}
</script>
'></iframe>
Tests that storing module cache does not crash with detached frame.
Note that crash does only reproduce in ~20% of the runs, depending on timing.