mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
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:
parent
08c14d911f
commit
6247bebd91
@ -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
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user