tor-browser

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

cookieStore_subscriptions_empty.https.window.js (583B)


      1 // META: script=/service-workers/service-worker/resources/test-helpers.sub.js
      2 
      3 'use strict';
      4 
      5 promise_test(async testCase => {
      6  const registration = await service_worker_unregister_and_register(
      7      testCase, 'resources/empty_sw.js', 'resources/does/not/exist');
      8  testCase.add_cleanup(() => registration.unregister());
      9  await wait_for_state(testCase, registration.installing, 'activated');
     10 
     11  const subscriptions = await registration.cookies.getSubscriptions();
     12  assert_equals(0, subscriptions.length);
     13 }, 'Newly registered and activated service worker has no subscriptions');