tor-browser

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

browser_wpi_isolate_high_value.js (780B)


      1 // Import this in order to use `do_tests()`.
      2 Services.scriptloader.loadSubScript(
      3  "chrome://mochitests/content/browser/dom/ipc/tests/browser_wpi_base.js",
      4  this
      5 );
      6 
      7 add_task(async function test_isolate_high_value() {
      8  await SpecialPowers.pushPrefEnv({
      9    set: [
     10      ["browser.tabs.remote.separatedMozillaDomains", "mozilla.org"],
     11      [
     12        "fission.webContentIsolationStrategy",
     13        WebContentIsolationStrategy.IsolateHighValue,
     14      ],
     15    ],
     16  });
     17 
     18  await do_tests({
     19    com_normal: "web",
     20    org_normal: "web",
     21    moz_normal: "privilegedmozilla",
     22    com_high: "webIsolated=https://example.com",
     23    com_coop_coep: "webCOOP+COEP=https://example.com",
     24    org_coop_coep: "webCOOP+COEP=https://example.org",
     25    moz_coop_coep: "privilegedmozilla",
     26  });
     27 });