Bug 1794567 [wpt PR 36396] - CSS highlight painting: no OffsetInContainerNode for...
[gecko.git] / testing / web-platform / tests / html / browsers / browsing-the-web / overlapping-navigations-and-traversals / tentative / cross-document-nav-stop.html
blob0803d6c8d15c6934f655e2147d1d00b40a254edb
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <title>Stop during cross-document navigations</title>
4 <script src="/resources/testharness.js"></script>
5 <script src="/resources/testharnessreport.js"></script>
7 <body>
8 <script type="module">
9 import { createIframe, waitForPotentialNetworkLoads } from "./resources/helpers.mjs";
11 promise_test(async t => {
12 const iframe = await createIframe(t);
14 iframe.contentWindow.location.search = "?1";
15 iframe.contentWindow.onload = t.unreached_func("load event fired");
16 iframe.contentWindow.stop();
18 await waitForPotentialNetworkLoads(t);
19 assert_equals(iframe.contentWindow.location.search, "");
20 }, "cross-document navigations are stopped by stop()");
21 </script>