Bug 1498748 - Stop ignoring browser.urlbar.quantumbar in the first window. r=mak
authorDão Gottwald <dao@mozilla.com>
Mon, 15 Oct 2018 12:59:31 +0000
changeset 489647 bd8f6c06661e05ff6d0f3b56e05c3c39e76958a9
parent 489646 1ae5b0d96fab39812dc8cd5d8b211c0befbd839f
child 489648 9d3c1734052cb639b5035ac3f652547ccbdfa1a7
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewersmak
bugs1498748
milestone64.0a1
Bug 1498748 - Stop ignoring browser.urlbar.quantumbar in the first window. r=mak Differential Revision: https://phabricator.services.mozilla.com/D8633
browser/base/content/browser.js
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -260,20 +260,17 @@ if (AppConstants.platform != "macosx") {
 Object.defineProperty(this, "gURLBar", {
   configurable: true,
   enumerable: true,
   get() {
     delete this.gURLBar;
 
     let element = document.getElementById("urlbar");
 
-    // For now, always use the legacy implementation in the first window to
-    // have a usable address bar e.g. for accessing about:config.
-    if (BrowserWindowTracker.windowCount <= 1 ||
-        !Services.prefs.getBoolPref("browser.urlbar.quantumbar", false)) {
+    if (!Services.prefs.getBoolPref("browser.urlbar.quantumbar", false)) {
       return this.gURLBar = element;
     }
 
     // Disable the legacy XBL binding.
     element.setAttribute("quantumbar", "true");
 
     // Re-focus the input field if it was focused before switching bindings.
     if (element.hasAttribute("focused")) {