tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

navigation-navigate-cross-doc.html (609B)


      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 }, "currententrychange does not fire for cross-document navigation.navigate()");
     12 </script>