tor-browser

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

idlharness.https.any.js (571B)


      1 // META: global=window,worker
      2 // META: script=/resources/WebIDLParser.js
      3 // META: script=/resources/idlharness.js
      4 // META: timeout=long
      5 
      6 idl_test(
      7  ['fetch'],
      8  ['referrer-policy', 'html', 'dom'],
      9  idl_array => {
     10    idl_array.add_objects({
     11      Headers: ["new Headers()"],
     12      Request: ["new Request('about:blank')"],
     13      Response: ["new Response()"],
     14    });
     15    if (self.GLOBAL.isWindow()) {
     16      idl_array.add_objects({ Window: ['window'] });
     17    } else if (self.GLOBAL.isWorker()) {
     18      idl_array.add_objects({ WorkerGlobalScope: ['self'] });
     19    }
     20  }
     21 );