Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

add_task(async function test_privileged_remote_true() {
await SpecialPowers.pushPrefEnv({
set: [
["browser.tabs.remote.separatePrivilegedContentProcess", true],
["browser.tabs.remote.separatePrivilegedMozillaWebContentProcess", true],
["browser.tabs.remote.separatedMozillaDomains", "example.org"],
],
});
test_url_for_process_types({
chromeResult: false,
webContentResult: true,
privilegedAboutContentResult: false,
privilegedMozillaContentResult: false,
extensionProcessResult: false,
});
test_url_for_process_types({
chromeResult: false,
webContentResult: false,
privilegedAboutContentResult: false,
privilegedMozillaContentResult: true,
extensionProcessResult: false,
});
});
add_task(async function test_privileged_remote_false() {
await SpecialPowers.pushPrefEnv({
set: [
["browser.tabs.remote.separatePrivilegedContentProcess", true],
["browser.tabs.remote.separatePrivilegedMozillaWebContentProcess", false],
],
});
test_url_for_process_types({
chromeResult: false,
webContentResult: true,
privilegedAboutContentResult: false,
privilegedMozillaContentResult: false,
extensionProcessResult: false,
});
test_url_for_process_types({
chromeResult: false,
webContentResult: true,
privilegedAboutContentResult: false,
privilegedMozillaContentResult: false,
extensionProcessResult: false,
});
});