Bug 1000377 - Always show the toggleable toolbars dropdown in customization mode even if the only toolbar available is the bookmarks toolbar. r=MattN
authorJared Wein <jwein@mozilla.com>
Wed, 23 Apr 2014 12:04:00 +0200
changeset 180407 63bb9295a0704ef6816a0a6dd363363157890063
parent 180406 61f910c1aa722a911e88c959c1053286bd17eae4
child 180408 fcdca8a9cda165112f8762cc77e03f25446d8c12
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewersMattN
bugs1000377
milestone31.0a1
Bug 1000377 - Always show the toggleable toolbars dropdown in customization mode even if the only toolbar available is the bookmarks toolbar. r=MattN
browser/components/customizableui/src/CustomizeMode.jsm
--- a/browser/components/customizableui/src/CustomizeMode.jsm
+++ b/browser/components/customizableui/src/CustomizeMode.jsm
@@ -156,18 +156,17 @@ CustomizeMode.prototype = {
         }.bind(this);
         Services.obs.addObserver(delayedStartupObserver, "browser-delayed-startup-finished", false);
         yield delayedStartupDeferred.promise;
       }
 
       let toolbarVisibilityBtn = document.getElementById(kToolbarVisibilityBtn);
       let togglableToolbars = window.getTogglableToolbars();
       let bookmarksToolbar = document.getElementById("PersonalToolbar");
-      if (togglableToolbars.length == 0 ||
-          (togglableToolbars.length == 1 && togglableToolbars[0] == bookmarksToolbar)) {
+      if (togglableToolbars.length == 0) {
         toolbarVisibilityBtn.setAttribute("hidden", "true");
       } else {
         toolbarVisibilityBtn.removeAttribute("hidden");
       }
 
       // Disable lightweight themes while in customization mode since
       // they don't have large enough images to pad the full browser window.
       if (this.document.documentElement._lightweightTheme)