Bug 1418814 - the user specified background color should be used for the tabbrowser background when 'Always override the colors specified by the page' is selected, r=Gijs. a=ritu
authorFlorian Quèze <florian@queze.net>
Thu, 25 Jan 2018 23:43:35 +0100
changeset 454841 618633d326dd69a5e9f1fa68415b5b1b8bf563c0
parent 454840 8463e06147690aa1e683a8c3064fd9a8e3ed6b64
child 454842 e2ec2a10573d21fd773c9845b24d95081fcf195c
push id1648
push usermtabara@mozilla.com
push dateThu, 01 Mar 2018 12:45:47 +0000
treeherdermozilla-release@cbb9688c2eeb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs, ritu
bugs1418814
milestone59.0
Bug 1418814 - the user specified background color should be used for the tabbrowser background when 'Always override the colors specified by the page' is selected, r=Gijs. a=ritu
browser/base/content/tabbrowser.xml
--- a/browser/base/content/tabbrowser.xml
+++ b/browser/base/content/tabbrowser.xml
@@ -5972,16 +5972,18 @@
                                    .createInstance(nsIWebProgress);
           filter.addProgressListener(tabListener, nsIWebProgress.NOTIFY_ALL);
           this._tabListeners.set(this.mCurrentTab, tabListener);
           this._tabFilters.set(this.mCurrentTab, filter);
           this.webProgress.addProgressListener(filter, nsIWebProgress.NOTIFY_ALL);
 
           if (Services.prefs.getBoolPref("browser.display.use_system_colors"))
             this.style.backgroundColor = "-moz-default-background-color";
+          else if (Services.prefs.getIntPref("browser.display.document_color_use") == 2)
+            this.style.backgroundColor = Services.prefs.getCharPref("browser.display.background_color");
 
           let messageManager = window.getGroupMessageManager("browsers");
 
           let remote = window.QueryInterface(Ci.nsIInterfaceRequestor)
             .getInterface(Ci.nsIWebNavigation)
             .QueryInterface(Ci.nsILoadContext)
             .useRemoteTabs;
           if (remote) {