diff --git a/dom/ipc/tests/JSWindowActor/browser_contentWindow.js b/dom/ipc/tests/JSWindowActor/browser_contentWindow.js index db17fdb6e931..b450e73e5631 100644 --- a/dom/ipc/tests/JSWindowActor/browser_contentWindow.js +++ b/dom/ipc/tests/JSWindowActor/browser_contentWindow.js @@ -2,9 +2,11 @@ http://creativecommons.org/publicdomain/zero/1.0/ */ "use strict"; +const CONTENT_WINDOW_URL = "https://example.com/"; + declTest("contentWindow null when inner window inactive", { - matches: [TEST_URL + "*"], - url: TEST_URL + "?1", + matches: [CONTENT_WINDOW_URL + "*"], + url: CONTENT_WINDOW_URL + "?1", async test(browser) { // If Fission is disabled, the pref is no-op. @@ -17,7 +19,7 @@ declTest("contentWindow null when inner window inactive", { await actorParent.sendQuery("storeActor"); - let url = TEST_URL + "?2"; + let url = CONTENT_WINDOW_URL + "?2"; let loaded = BrowserTestUtils.browserLoaded(browser, false, url); await BrowserTestUtils.loadURI(browser, url); await loaded; diff --git a/dom/ipc/tests/test_bug1086684.js b/dom/ipc/tests/test_bug1086684.js index 63c39e19ccab..de7cfc00db34 100644 --- a/dom/ipc/tests/test_bug1086684.js +++ b/dom/ipc/tests/test_bug1086684.js @@ -1,6 +1,7 @@ "use strict"; /* eslint-env mozilla/frame-script */ +const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm"); const { XPCShellContentUtils } = ChromeUtils.import( "resource://testing-common/XPCShellContentUtils.jsm" ); @@ -58,6 +59,7 @@ function childFrameScript() { } add_task(async function() { + Services.prefs.setBoolPref("dom.security.https_first", false); let page = await XPCShellContentUtils.loadContentPage(childFrameURL, { remote: true, }); @@ -94,4 +96,5 @@ add_task(async function() { }); await page.close(); + Services.prefs.clearUserPref("dom.security.https_first"); });