tor-browser

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

navigate-from-initial-about-blank-same-doc-popup.html (610B)


      1 <!doctype html>
      2 <script src="/resources/testharness.js"></script>
      3 <script src="/resources/testharnessreport.js"></script>
      4 <script>
      5 promise_test(async t => {
      6  const w = window.open("about:blank#1");
      7  w.navigation.oncurrententrychange = t.unreached_func("currententrychange should not fire");
      8 
      9  assert_equals(w.location.href, "about:blank#1");
     10  w.location.href = "about:blank#2";
     11  assert_equals(w.location.href, "about:blank#2");
     12 
     13  await new Promise(resolve => t.step_timeout(resolve, 10));
     14 }, "currententrychange does not fire when navigating away from the initial about:blank (popup window)");
     15 </script>