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 499753 bd8f6c06661e05ff6d0f3b56e05c3c39e76958a9
parent 499752 1ae5b0d96fab39812dc8cd5d8b211c0befbd839f
child 499754 9d3c1734052cb639b5035ac3f652547ccbdfa1a7
push id1864
push userffxbld-merge
push dateMon, 03 Dec 2018 15:51:40 +0000
treeherdermozilla-release@f040763d99ad [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmak
bugs1498748
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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")) {