зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1375710 - Remove CPOWs from browser_domFullscreen_fullscreenMode.js. r=Gijs
MozReview-Commit-ID: FCoCrJ8Y9jn --HG-- extra : rebase_source : c7f6ca0264188116f86a6aa63fe0479ae992cf66
This commit is contained in:
Родитель
2f526fd6bc
Коммит
3db7fb4960
|
@ -163,18 +163,16 @@ add_task(async function() {
|
||||||
["full-screen-api.transition-duration.enter", "0 0"],
|
["full-screen-api.transition-duration.enter", "0 0"],
|
||||||
["full-screen-api.transition-duration.leave", "0 0"]);
|
["full-screen-api.transition-duration.leave", "0 0"]);
|
||||||
|
|
||||||
let tab = BrowserTestUtils.addTab(gBrowser, kPage);
|
registerCleanupFunction(async function() {
|
||||||
let browser = tab.linkedBrowser;
|
if (window.fullScreen) {
|
||||||
gBrowser.selectedTab = tab;
|
executeSoon(() => BrowserFullScreen());
|
||||||
await waitForDocLoadComplete();
|
await waitForFullscreenChanges(FS_CHANGE_SIZE);
|
||||||
|
|
||||||
registerCleanupFunction(() => {
|
|
||||||
if (browser.contentWindow.fullScreen) {
|
|
||||||
BrowserFullScreen();
|
|
||||||
}
|
}
|
||||||
gBrowser.removeTab(tab);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
let tab = await BrowserTestUtils.openNewForegroundTab({ gBrowser, url: kPage });
|
||||||
|
let browser = tab.linkedBrowser;
|
||||||
|
|
||||||
gMessageManager = browser.messageManager;
|
gMessageManager = browser.messageManager;
|
||||||
gMessageManager.loadFrameScript(
|
gMessageManager.loadFrameScript(
|
||||||
"data:,(" + frameScript.toString() + ")();", false);
|
"data:,(" + frameScript.toString() + ")();", false);
|
||||||
|
@ -237,4 +235,6 @@ add_task(async function() {
|
||||||
await waitForFullscreenChanges(FS_CHANGE_SIZE);
|
await waitForFullscreenChanges(FS_CHANGE_SIZE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await BrowserTestUtils.removeTab(tab);
|
||||||
});
|
});
|
||||||
|
|
Загрузка…
Ссылка в новой задаче