tor-browser

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

idlharness.https.any.js (618B)


      1 // META: script=/resources/WebIDLParser.js
      2 // META: script=/resources/idlharness.js
      3 // META: timeout=long
      4 
      5 'use strict';
      6 
      7 // https://wicg.github.io/background-sync/spec/
      8 
      9 idl_test(
     10  ['background-sync'],
     11  ['service-workers', 'html', 'dom'],
     12  idlArray => {
     13    const isServiceWorker = location.pathname.includes('.serviceworker.');
     14    if (isServiceWorker) {
     15      idlArray.add_objects({
     16        ServiceWorkerGlobalScope: ['self', 'onsync'],
     17        ServiceWorkerRegistration: ['registration'],
     18        SyncManager: ['registration.sync'],
     19        SyncEvent: ['new SyncEvent("tag", "lastChance")'],
     20      });
     21  }
     22 }
     23 );