From 46826893e945695b268ab003b507b7a41e5febed Mon Sep 17 00:00:00 2001 From: Matt Brubeck Date: Fri, 8 Nov 2013 15:44:01 -0800 Subject: [PATCH] Bug 936659 - Remove unused parameters for Browser.addTab [r=sfoster] --- browser/metro/base/content/browser.js | 7 +++---- browser/metro/components/SessionStore.js | 5 +---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/browser/metro/base/content/browser.js b/browser/metro/base/content/browser.js index bd7affe16dd..54302cd5996 100644 --- a/browser/metro/base/content/browser.js +++ b/browser/metro/base/content/browser.js @@ -511,9 +511,8 @@ var Browser = { * new tab creation. */ _announceNewTab: function _announceNewTab(aTab, aParams, aBringFront) { - let getAttention = ("getAttention" in aParams ? aParams.getAttention : !aBringFront); let event = document.createEvent("UIEvents"); - event.initUIEvent("TabOpen", true, false, window, getAttention); + event.initUIEvent("TabOpen", true, false, window, 0); aTab.chromeTab.dispatchEvent(event); aTab.browser.messageManager.sendAsyncMessage("Browser:TabOpen"); }, @@ -1060,7 +1059,7 @@ nsBrowserAccess.prototype = { return null; } else if (aWhere == Ci.nsIBrowserDOMWindow.OPEN_NEWTAB) { let owner = isExternal ? null : Browser.selectedTab; - let tab = Browser.addTab("about:blank", true, owner, { getAttention: true }); + let tab = Browser.addTab("about:blank", true, owner); if (isExternal) tab.closeOnExit = true; browser = tab.browser; @@ -1074,7 +1073,7 @@ nsBrowserAccess.prototype = { if (!browser) { // Make a new tab to hold the app - let tab = Browser.addTab("about:blank", true, null, { getAttention: true }); + let tab = Browser.addTab("about:blank", true); browser = tab.browser; browser.appURI = aURI; } else { diff --git a/browser/metro/components/SessionStore.js b/browser/metro/components/SessionStore.js index e0d3d61aa82..531852036d5 100644 --- a/browser/metro/components/SessionStore.js +++ b/browser/metro/components/SessionStore.js @@ -729,14 +729,11 @@ SessionStore.prototype = { for (let i=0; i