tor-browser

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

update-on-navigation.https.html (827B)


      1 <!DOCTYPE html>
      2 <title>Update on navigation</title>
      3 <script src='/resources/testharness.js'></script>
      4 <script src='/resources/testharnessreport.js'></script>
      5 <script src='resources/test-helpers.sub.js'></script>
      6 <script>
      7 promise_test(async (t) => {
      8    var script = 'resources/update-fetch-worker.py';
      9    var scope = 'resources/trickle.py?ms=1000&count=1';
     10 
     11    const registration = await service_worker_unregister_and_register(t, script, scope);
     12    t.add_cleanup(() => registration.unregister());
     13 
     14    if (registration.installing)
     15        await wait_for_state(t, registration.installing, 'activated');
     16 
     17    const frame = await with_iframe(scope);
     18    t.add_cleanup(() => frame.remove());
     19 }, 'The active service worker in charge of a navigation load should not be terminated as part of updating the registration');
     20 </script>