Bug 1611484 - Enable browser_popup_frames.js test for Fission. r=NeilDeakin

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mike Conley 2020-02-12 15:10:27 +00:00
parent 08c14d911f
commit 6247bebd91
2 changed files with 4 additions and 6 deletions

View File

@ -10,7 +10,6 @@ support-files =
popup_blocker_10_popups.html
skip-if = (os == 'linux') || (e10s && debug) # Frequent bug 1081925 and bug 1125520 failures
[browser_popup_frames.js]
fail-if = fission
support-files =
popup_blocker.html
popup_blocker_a.html

View File

@ -19,7 +19,7 @@ add_task(async function test_opening_blocked_popups() {
"data:text/html,Hello"
);
await SpecialPowers.spawn(
let popupframeBC = await SpecialPowers.spawn(
tab.linkedBrowser,
[baseURL + "popup_blocker.html"],
uri => {
@ -27,6 +27,7 @@ add_task(async function test_opening_blocked_popups() {
iframe.id = "popupframe";
iframe.src = uri;
content.document.body.appendChild(iframe);
return iframe.browsingContext;
}
);
@ -65,10 +66,8 @@ add_task(async function test_opening_blocked_popups() {
true
);
// Now navigate the subframe.
await SpecialPowers.spawn(tab.linkedBrowser, [], async function() {
content.document.getElementById(
"popupframe"
).contentDocument.location.href = "about:blank";
await SpecialPowers.spawn(popupframeBC, [], async function() {
content.document.location.href = "about:blank";
});
await pageHideHappened;
await BrowserTestUtils.waitForCondition(