diff --git a/browser/base/content/test/general/browser_bug579872.js b/browser/base/content/test/general/browser_bug579872.js index 803b9e101710..68c37f6eccbc 100644 --- a/browser/base/content/test/general/browser_bug579872.js +++ b/browser/base/content/test/general/browser_bug579872.js @@ -11,13 +11,13 @@ function test() { gBrowser.pinTab(newTab); gBrowser.selectedTab = newTab; - openUILinkIn("javascript:var x=0;", "current"); + openTrustedLinkIn("javascript:var x=0;", "current"); is(gBrowser.tabs.length, 2, "Should open in current tab"); - openUILinkIn("http://example.com/1", "current"); + openTrustedLinkIn("http://example.com/1", "current"); is(gBrowser.tabs.length, 2, "Should open in current tab"); - openUILinkIn("http://example.org/", "current"); + openTrustedLinkIn("http://example.org/", "current"); is(gBrowser.tabs.length, 3, "Should open in new tab"); gBrowser.removeTab(newTab); diff --git a/browser/base/content/test/general/browser_bug594131.js b/browser/base/content/test/general/browser_bug594131.js index 7f8f225852ba..391234aedcc1 100644 --- a/browser/base/content/test/general/browser_bug594131.js +++ b/browser/base/content/test/general/browser_bug594131.js @@ -11,7 +11,9 @@ function test() { gBrowser.pinTab(newTab); gBrowser.selectedTab = newTab; - openUILinkIn("http://example.org/", "current", { inBackground: true }); + openTrustedLinkIn("http://example.org/", "current", { + inBackground: true, + }); isnot(gBrowser.selectedTab, newTab, "shouldn't load in background"); gBrowser.removeTab(newTab); diff --git a/browser/base/content/test/general/browser_contentSearchUI.js b/browser/base/content/test/general/browser_contentSearchUI.js index 13a42c786774..675cd99d3f83 100644 --- a/browser/base/content/test/general/browser_contentSearchUI.js +++ b/browser/base/content/test/general/browser_contentSearchUI.js @@ -716,7 +716,7 @@ async function promiseTab() { deferred.resolve(msg("init")); }); }, true, true); - openUILinkIn(pageURL, "current"); + openTrustedLinkIn(pageURL, "current"); return deferred.promise; } diff --git a/browser/base/content/test/general/browser_remoteWebNavigation_postdata.js b/browser/base/content/test/general/browser_remoteWebNavigation_postdata.js index 7782d23b4085..3a2c7a69db91 100644 --- a/browser/base/content/test/general/browser_remoteWebNavigation_postdata.js +++ b/browser/base/content/test/general/browser_remoteWebNavigation_postdata.js @@ -38,8 +38,10 @@ add_task(async function test_remoteWebNavigation_postdata() { "\r\n" + "success"; - openUILinkIn(path, "tab", null, makeInputStream(postdata)); - + openTrustedLinkIn(path, "tab", { + allowThirdPartyFixup: null, + postData: makeInputStream(postdata), + }); }); BrowserTestUtils.removeTab(gBrowser.selectedTab); diff --git a/browser/base/content/test/tabs/browser_abandonment_telemetry.js b/browser/base/content/test/tabs/browser_abandonment_telemetry.js index efa8a0e01f54..4a611cecb7ef 100644 --- a/browser/base/content/test/tabs/browser_abandonment_telemetry.js +++ b/browser/base/content/test/tabs/browser_abandonment_telemetry.js @@ -186,7 +186,7 @@ const PROBE_TESTS = [ prepare(browser) {}, async doAction(browser) { - openUILinkIn(PAGE_2, "current"); + openTrustedLinkIn(PAGE_2, "current"); await BrowserTestUtils.browserLoaded(browser); }, },