summaryrefslogtreecommitdiffstats
path: root/dom/ipc/tests/browser_wpi_isolate_everything.js
blob: e902fec9d0669de3c24e834a4c14edc9b8a7a207 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Import this in order to use `do_tests()`.
Services.scriptloader.loadSubScript(
  "chrome://mochitests/content/browser/dom/ipc/tests/browser_wpi_base.js",
  this
);

add_task(async function test_isolate_everything() {
  await SpecialPowers.pushPrefEnv({
    set: [
      ["browser.tabs.remote.separatedMozillaDomains", "mozilla.org"],
      [
        "fission.webContentIsolationStrategy",
        WebContentIsolationStrategy.IsolateEverything,
      ],
    ],
  });

  await do_tests({
    com_normal: "webIsolated=https://example.com",
    org_normal: "webIsolated=https://example.org",
    moz_normal: "privilegedmozilla",
    com_high: "webIsolated=https://example.com",
    com_coop_coep: "webCOOP+COEP=https://example.com",
    org_coop_coep: "webCOOP+COEP=https://example.org",
    moz_coop_coep: "privilegedmozilla",
  });
});