tor-browser

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

critical-ch.navigation-timing.restart.https.html (627B)


      1 <!DOCTYPE html>
      2 <body>
      3 <script src="/resources/testharness.js"></script>
      4 <script src="/resources/testharnessreport.js"></script>
      5 <script>
      6 promise_test(async t => {
      7  var navigationTiming = window.performance.getEntriesByType('navigation')[0];
      8  assert_not_equals(navigationTiming, undefined);
      9  assert_less_than(navigationTiming.startTime, navigationTiming.criticalCHRestart, "Restarts happen after the beginning of the navigation");
     10  assert_less_than(navigationTiming.criticalCHRestart, navigationTiming.fetchStart, "Restarts happen before fetch");
     11 }, "Critical-CH restart navigation timing test");
     12 </script>
     13 </body>
     14 </html>