Backed out changeset a224934d4790 (bug 1786523) for causing multiple failures in browser_siteData_multi_select/browser_aboutwelcome_multistage_mr CLOSED TREE
This commit is contained in:
@@ -310,18 +310,7 @@ const SpecialMessageActions = {
|
||||
(data && data.entrypoint) || "snippets",
|
||||
(data && data.extraParams) || {}
|
||||
);
|
||||
// if a location is specified, use that
|
||||
if (data.where) {
|
||||
window.openLinkIn(url, data.where, {
|
||||
private: false,
|
||||
triggeringPrincipal: Services.scriptSecurityManager.createNullPrincipal(
|
||||
{}
|
||||
),
|
||||
csp: null,
|
||||
});
|
||||
break;
|
||||
}
|
||||
// If no location was specified, we want to replace the current tab.
|
||||
// We want to replace the current tab.
|
||||
window.openLinkIn(url, "current", {
|
||||
private: false,
|
||||
triggeringPrincipal: Services.scriptSecurityManager.createNullPrincipal(
|
||||
|
||||
@@ -43,24 +43,4 @@ add_task(async function test_SHOW_FIREFOX_ACCOUNTS() {
|
||||
"should load fxa with a custom endpoint and extra parameters in url"
|
||||
);
|
||||
});
|
||||
|
||||
add_task(async function test_SHOW_FIREFOX_ACCOUNTS_where() {
|
||||
// Open FXA with a 'where' prop
|
||||
const action = {
|
||||
type: "SHOW_FIREFOX_ACCOUNTS",
|
||||
data: {
|
||||
entrypoint: "activity-stream-firstrun",
|
||||
where: "tab",
|
||||
},
|
||||
};
|
||||
const tabPromise = BrowserTestUtils.waitForNewTab(
|
||||
gBrowser,
|
||||
"https://example.com/?context=fx_desktop_v3&entrypoint=activity-stream-firstrun&action=email&service=sync"
|
||||
);
|
||||
|
||||
await SpecialMessageActions.handleAction(action, gBrowser);
|
||||
const browser = await tabPromise;
|
||||
ok(browser, "should open FXA in a new tab");
|
||||
BrowserTestUtils.removeTab(browser);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user