Bug 963512 - use real element for Australis private browsing indicator to avoid layout issues with detecting ::after, r=dao
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Mon, 24 Feb 2014 23:37:09 +0000
changeset 170959 faee2530c5921decf460cf2cd80a92e48bff8583
parent 170958 3c39ae858c61946a1ffcbadc22d7cc2a386f61b7
child 170960 2a97a8e98f0412e1eb2dc74b98ea02343781869f
push id270
push userpvanderbeken@mozilla.com
push dateThu, 06 Mar 2014 09:24:21 +0000
reviewersdao
bugs963512
milestone30.0a1
Bug 963512 - use real element for Australis private browsing indicator to avoid layout issues with detecting ::after, r=dao
browser/base/content/browser.xul
browser/themes/windows/browser.css
--- a/browser/base/content/browser.xul
+++ b/browser/base/content/browser.xul
@@ -587,16 +587,19 @@
 
       <toolbarbutton id="tabs-closebutton"
                      class="close-button tabs-closebutton close-icon"
                      command="cmd_close"
                      label="&closeTab.label;"
                      cui-areatype="toolbar"
                      tooltiptext="&closeTab.label;"/>
 
+#ifdef XP_WIN
+      <hbox id="private-browsing-indicator" skipintoolbarset="true" ordinal="1000"/>
+#endif
 #ifdef CAN_DRAW_IN_TITLEBAR
       <hbox class="titlebar-placeholder" type="caption-buttons"
             id="titlebar-placeholder-on-TabsToolbar-for-captions-buttons" persist="width"
 #ifndef XP_MACOSX
             ordinal="1000"
 #endif
             skipintoolbarset="true"/>
 
--- a/browser/themes/windows/browser.css
+++ b/browser/themes/windows/browser.css
@@ -2504,16 +2504,14 @@ chatbox {
 
 #main-window[customizing] #navigator-toolbox::after {
   margin-left: 2em;
   margin-right: 2em;
 }
 
 /* End customization mode */
 
-#main-window[privatebrowsingmode=temporary] #TabsToolbar::after {
-  content: "";
-  display: -moz-box;
+#main-window[privatebrowsingmode=temporary] #private-browsing-indicator {
   width: 40px;
   background: url("chrome://browser/skin/privatebrowsing-indicator.png") no-repeat center center;
 }
 
 %include ../shared/UITour.inc.css