| <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. |