Bug 827954 - Firefox button overlaps the first tab in private windows. r=ehsan, a=akeybl
authorDão Gottwald <dao@mozilla.com>
Fri, 11 Jan 2013 13:39:39 +0100
changeset 123584 70834b87486c90edc48f652ac2fc6181cd2e6874
parent 123583 4c7eca8cb696119aef0605b12dea3ce371379290
child 123585 150577f90962e36cb8d4ae25e86194b871a287dd
push id3167
push userryanvm@gmail.com
push dateMon, 14 Jan 2013 02:47:11 +0000
treeherdermozilla-aurora@f9deba82d43b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan, akeybl
bugs827954
milestone20.0a2
Bug 827954 - Firefox button overlaps the first tab in private windows. r=ehsan, a=akeybl
browser/base/content/browser.js
browser/themes/winstripe/browser.css
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -1168,18 +1168,18 @@ var gBrowserInit = {
     updateAppButtonDisplay();
 #endif
 
     // Misc. inits.
     CombinedStopReload.init();
     allTabs.readPref();
     TabsOnTop.init();
     BookmarksMenuButton.init();
+    gPrivateBrowsingUI.init();
     TabsInTitlebar.init();
-    gPrivateBrowsingUI.init();
     retrieveToolbarIconsizesFromTheme();
 
     // Wait until chrome is painted before executing code not critical to making the window visible
     this._boundDelayedStartup = this._delayedStartup.bind(this, uriToLoad, mustLoadSidebar);
     window.addEventListener("MozAfterPaint", this._boundDelayedStartup);
 
     this._loadHandled = true;
   },
--- a/browser/themes/winstripe/browser.css
+++ b/browser/themes/winstripe/browser.css
@@ -3386,13 +3386,15 @@ chatbox[minimized="true"] {
   background-position: top right;
   background-repeat: no-repeat;
 }
 
 #main-window[privatebrowsingmode=temporary] #toolbar-menubar:-moz-locale-dir(rtl) {
   background-position: top left;
 }
 
-#main-window[privatebrowsingmode=temporary] #appmenu-button {
+#main-window[privatebrowsingmode=temporary] #appmenu-button > .button-box > .box-inherit > .button-icon {
   list-style-image: url("chrome://browser/skin/privatebrowsing-light.png");
+  width: 20px;
+  height: 16px;
 }
 %endif