Bug 1592894 - pt 3. Remove useHTTPResponseProcessSelection from tests r=mattwoodrow

Differential Revision: https://phabricator.services.mozilla.com/D53764

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Paul Bone 2019-12-02 04:02:59 +00:00
Родитель 6f5059af2e
Коммит 58a552899c
4 изменённых файлов: 10 добавлений и 20 удалений

Просмотреть файл

@ -46,7 +46,6 @@ async function runTest() {
// requests to `ORIGIN` will be marked as controlled.
await SpecialPowers.pushPrefEnv({
set: [
["browser.tabs.remote.useHTTPResponseProcessSelection", true],
["browser.tabs.documentchannel", true],
["dom.serviceWorkers.enabled", true],
["dom.serviceWorkers.exemptFromPerDomainMax", true],
@ -114,10 +113,12 @@ async function runTest() {
info("Waiting for the browser to stop");
await BrowserTestUtils.browserStopped(tab.linkedBrowser);
Assert.ok(
E10SUtils.isWebRemoteType(tab.linkedBrowser.remoteType),
`${CROSS_ORIGIN_URL} should load in a web-content process`
);
if (SpecialPowers.useRemoteSubframes) {
Assert.ok(
E10SUtils.isWebRemoteType(tab.linkedBrowser.remoteType),
`${CROSS_ORIGIN_URL} should load in a web-content process`
);
}
// Step 3: cleanup.
info("Loading initial page to unregister all Service Workers");

Просмотреть файл

@ -17,7 +17,6 @@ add_task(async function() {
await SpecialPowers.pushPrefEnv({
set: [
["fission.preserve_browsing_contexts", true],
["browser.tabs.remote.useHTTPResponseProcessSelection", true],
["browser.tabs.documentchannel", true],
],
});

Просмотреть файл

@ -2,8 +2,6 @@ const { E10SUtils } = ChromeUtils.import(
"resource://gre/modules/E10SUtils.jsm"
);
const RESPONSE_PROCESS_SELECTION_PREF =
"browser.tabs.remote.useHTTPResponseProcessSelection";
const DOCUMENT_CHANNEL_PREF = "browser.tabs.documentchannel";
const FISSION_PREF = "fission.autostart";
const HISTORY = [
@ -121,19 +119,14 @@ async function runTest() {
});
}
add_task(async function prefDisabled() {
await SpecialPowers.pushPrefEnv({
set: [[RESPONSE_PROCESS_SELECTION_PREF, false]],
});
add_task(async function prefNotSet() {
await runTest();
});
add_task(async function prefEnabled() {
await SpecialPowers.pushPrefEnv({
set: [
[RESPONSE_PROCESS_SELECTION_PREF, true],
[DOCUMENT_CHANNEL_PREF, true],
],
set: [[DOCUMENT_CHANNEL_PREF, true]],
});
await runTest();
await SpecialPowers.popPrefEnv();
});

Просмотреть файл

@ -1,9 +1,6 @@
add_task(async function setupPrefs() {
await SpecialPowers.pushPrefEnv({
set: [
["browser.tabs.remote.useHTTPResponseProcessSelection", true],
["browser.tabs.documentchannel", true],
],
set: [["browser.tabs.documentchannel", true]],
});
});