browser_wpi_isolate_everything.js (837B)
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_everything() { 8 await SpecialPowers.pushPrefEnv({ 9 set: [ 10 ["browser.tabs.remote.separatedMozillaDomains", "mozilla.org"], 11 [ 12 "fission.webContentIsolationStrategy", 13 WebContentIsolationStrategy.IsolateEverything, 14 ], 15 ], 16 }); 17 18 await do_tests({ 19 com_normal: "webIsolated=https://example.com", 20 org_normal: "webIsolated=https://example.org", 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 });