Bug 558585 - Window flashes white when a new tab is made, despite settings. r=gavin
authorDão Gottwald <dao@mozilla.com>
Wed, 04 May 2011 09:29:31 +0200
changeset 68937 e90bdd97d168
parent 68936 759cb9d29ef3
child 68938 3ff945bdace7
push id19806
push userdgottwald@mozilla.com
push date2011-05-04 07:30 +0000
treeherdermozilla-central@e90bdd97d168 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin
bugs558585
milestone6.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 558585 - Window flashes white when a new tab is made, despite settings. r=gavin
browser/base/content/tabbrowser.css
browser/base/content/tabbrowser.xml
--- a/browser/base/content/tabbrowser.css
+++ b/browser/base/content/tabbrowser.css
@@ -30,17 +30,17 @@
   padding-right: 0 !important;
 }
 
 .tab-stack {
   vertical-align: top; /* for pinned tabs */
 }
 
 tabpanels {
-  background-color: white;
+  background-color: transparent;
 }
 
 .tab-drop-indicator {
   position: relative;
   z-index: 2;
 }
 
 .tab-throbber:not([busy]),
--- a/browser/base/content/tabbrowser.xml
+++ b/browser/base/content/tabbrowser.xml
@@ -2451,16 +2451,21 @@
           var tabListener = this.mTabProgressListener(this.mCurrentTab, this.mCurrentBrowser, true);
           const nsIWebProgress = Components.interfaces.nsIWebProgress;
           const filter = Components.classes["@mozilla.org/appshell/component/browser-status-filter;1"]
                                    .createInstance(nsIWebProgress);
           filter.addProgressListener(tabListener, nsIWebProgress.NOTIFY_ALL);
           this.mTabListeners[0] = tabListener;
           this.mTabFilters[0] = filter;
           this.init();
+
+          this.style.backgroundColor =
+            Services.prefs.getBoolPref("browser.display.use_system_colors") ?
+              "-moz-default-background-color" :
+              Services.prefs.getCharPref("browser.display.background_color");
         ]]>
       </constructor>
 
       <method name="init">
         <body><![CDATA[
           if (!this._initialProgressListenerAdded) {
             this._initialProgressListenerAdded = true;
             try {