tor-browser

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

shared-worker.https.any.js (446B)


      1 // META: script=./resources/checker.js
      2 // META: global=sharedworker
      3 'use strict';
      4 
      5 promise_test(async testCase => {
      6  assert_true(self.crossOriginIsolated);
      7 
      8  const result = await performance.measureUserAgentSpecificMemory();
      9 
     10  checkMeasureMemory(result, [
     11    {
     12      url: self.location.href,
     13      scope: 'SharedWorkerGlobalScope',
     14      container: null,
     15    },
     16  ]);
     17 }, 'Well-formed result of performance.measureUserAgentSpecificMemory.');