tor-browser

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

navigation-navigate-preventDefault.html (478B)


      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  navigation.oncurrententrychange = t.unreached_func("currententrychange should not fire");
      7  navigation.onnavigate = e => e.preventDefault();
      8  await promise_rejects_dom(t, "AbortError", navigation.navigate("#foo").committed);
      9 }, "currententrychange does not fire when onnavigate preventDefault() is called");
     10 </script>