Bug 1450975 - Load themes without an accentcolor. r=jaws
authorTim Nguyen <ntim.bugs@gmail.com>
Mon, 16 Apr 2018 10:24:48 +0200
changeset 471619 d83f412c924cf989b94928b5eed23732e8015b82
parent 471618 c4b87fb85648eb1309d3135489371a0a713b366f
child 471620 1374936db0183b95619f8e312c377f5a784e59bd
push id1728
push userjlund@mozilla.com
push dateMon, 18 Jun 2018 21:12:27 +0000
treeherdermozilla-release@c296fde26f5f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws
bugs1450975
milestone61.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 1450975 - Load themes without an accentcolor. r=jaws MozReview-Commit-ID: 2EGsaajHZfM
toolkit/modules/LightweightThemeConsumer.jsm
--- a/toolkit/modules/LightweightThemeConsumer.jsm
+++ b/toolkit/modules/LightweightThemeConsumer.jsm
@@ -142,17 +142,17 @@ LightweightThemeConsumer.prototype = {
     let root = this._doc.documentElement;
 
     if (aData.headerURL) {
       root.setAttribute("lwtheme-image", "true");
     } else {
       root.removeAttribute("lwtheme-image");
     }
 
-    let active = !!aData.accentcolor;
+    let active = aData.accentcolor || aData.headerURL;
     this._active = active;
 
     if (aData.icons) {
       let activeIcons = active ? Object.keys(aData.icons).join(" ") : "";
       root.setAttribute("lwthemeicons", activeIcons);
       for (let [name, value] of Object.entries(aData.icons)) {
         _setImage(root, active, name, value);
       }