зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1677195 - Fix browser_documentChannel.js for Fission, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D97053
This commit is contained in:
Родитель
522773107e
Коммит
24fcf076cd
|
@ -11,7 +11,6 @@ support-files =
|
|||
[browser_RemoteWebNavigation.js]
|
||||
skip-if = fission
|
||||
[browser_documentChannel.js]
|
||||
skip-if = fission
|
||||
[browser_httpCrossOriginOpenerPolicy.js]
|
||||
[browser_httpToFileHistory.js]
|
||||
[browser_oopProcessSwap.js]
|
||||
|
|
|
@ -140,21 +140,15 @@ async function postFrom(start, target) {
|
|||
);
|
||||
}
|
||||
|
||||
async function loadAndGetProcessID(browser, target, expectedProcessSwitch) {
|
||||
async function loadAndGetProcessID(browser, target) {
|
||||
info(`Performing GET load: ${target}`);
|
||||
await performLoad(
|
||||
browser,
|
||||
{
|
||||
maybeErrorPage: true,
|
||||
},
|
||||
async () => {
|
||||
() => {
|
||||
BrowserTestUtils.loadURI(browser, target);
|
||||
if (expectedProcessSwitch) {
|
||||
await BrowserTestUtils.waitForEvent(
|
||||
gBrowser.getTabForBrowser(browser),
|
||||
"SSTabRestored"
|
||||
);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
|
@ -187,11 +181,7 @@ async function testLoadAndRedirect(
|
|||
|
||||
info(`firstProcessID: ${firstProcessID}`);
|
||||
|
||||
let secondProcessID = await loadAndGetProcessID(
|
||||
browser,
|
||||
target,
|
||||
expectedProcessSwitch
|
||||
);
|
||||
let secondProcessID = await loadAndGetProcessID(browser, target);
|
||||
|
||||
info(`secondProcessID: ${secondProcessID}`);
|
||||
Assert.equal(firstProcessID != secondProcessID, expectedProcessSwitch);
|
||||
|
@ -200,11 +190,7 @@ async function testLoadAndRedirect(
|
|||
return;
|
||||
}
|
||||
|
||||
let thirdProcessID = await loadAndGetProcessID(
|
||||
browser,
|
||||
add307(target),
|
||||
expectedProcessSwitch
|
||||
);
|
||||
let thirdProcessID = await loadAndGetProcessID(browser, add307(target));
|
||||
|
||||
info(`thirdProcessID: ${thirdProcessID}`);
|
||||
Assert.equal(firstProcessID != thirdProcessID, expectedProcessSwitch);
|
||||
|
|
Загрузка…
Ссылка в новой задаче