tor-browser

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

not-on-load.html (698B)


      1 <!DOCTYPE html>
      2 <script src="/resources/testharness.js"></script>
      3 <script src="/resources/testharnessreport.js"></script>
      4 <!-- Per https://github.com/WICG/navigation-api/issues/31, make sure nothing happens on page loads -->
      5 
      6 <script>
      7 async_test(t => {
      8  navigation.onnavigate = t.unreached_func("navigate must not fire");
      9  navigation.oncurrententrychange = t.unreached_func("currententrychange must not fire");
     10 
     11  // pageshow is the latest event in the normal document loading cycle.
     12  // Ensure nothing happens even 10 ms afterward.
     13  window.addEventListener("pageshow", () => t.step_timeout(() => {
     14    t.done();
     15  }, 10));
     16 }, "No navigation API events happen on initial page load");
     17 </script>