Bug 1760181 [wpt PR 33182] - App history API to navigation API rename (2/n), a=testonly
[gecko.git] / testing / web-platform / tests / navigation-api / currententrychange-event / navigation-navigate-cross-doc.html
blob2f804a307f6cbeef899411f6fd58c382b2f7f1cf
1 <!doctype html>
2 <script src="/resources/testharness.js"></script>
3 <script src="/resources/testharnessreport.js"></script>
4 <iframe id="i" src="/common/blank.html"></iframe>
5 <script>
6 promise_test(async t => {
7 await new Promise(resolve => window.onload = resolve);
8 i.contentWindow.navigation.oncurrententrychange = t.unreached_func("currententrychange should not fire for cross-document navigations");
9 i.contentWindow.navigation.navigate("/common/blank.html?1");
10 await new Promise(resolve => i.onload = resolve);
11 }, "AppHistoryCurrentChangeEvent does not fire for cross-document navigation.navigate()");
12 </script>