diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index 110ab12e9241..2e42597e68ad 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -11,7 +11,6 @@ Cu.import("resource://gre/modules/XPCOMUtils.jsm"); Cu.import("resource://gre/modules/NotificationDB.jsm"); Cu.import("resource:///modules/RecentWindow.jsm"); - XPCOMUtils.defineLazyModuleGetter(this, "Preferences", "resource://gre/modules/Preferences.jsm"); XPCOMUtils.defineLazyModuleGetter(this, "Deprecated", @@ -34,8 +33,6 @@ XPCOMUtils.defineLazyModuleGetter(this, "GMPInstallManager", "resource://gre/modules/GMPInstallManager.jsm"); XPCOMUtils.defineLazyModuleGetter(this, "NewTabUtils", "resource://gre/modules/NewTabUtils.jsm"); -XPCOMUtils.defineLazyModuleGetter(this, "RemoteNewTabUtils", - "resource:///modules/RemoteNewTabUtils.jsm"); XPCOMUtils.defineLazyModuleGetter(this, "ContentSearch", "resource:///modules/ContentSearch.jsm"); XPCOMUtils.defineLazyModuleGetter(this, "AboutHome", @@ -3564,11 +3561,8 @@ const BrowserSearch = { if (!aSearchBar || document.activeElement != aSearchBar.textbox.inputField) { let url = gBrowser.currentURI.spec.toLowerCase(); let mm = gBrowser.selectedBrowser.messageManager; - let newTabRemoted = Services.prefs.getBoolPref("browser.newtabpage.remote"); if (url === "about:home" || - (url === "about:newtab" && - ((!newTabRemoted && NewTabUtils.allPages.enabled) || - (newTabRemoted && RemoteNewTabUtils.allPages.enabled)))) { + (url === "about:newtab" && NewTabUtils.allPages.enabled)) { ContentSearch.focusInput(mm); } else { openUILinkIn("about:home", "current");