Bug 1450975 - Load themes without an accentcolor. r=
MozReview-Commit-ID: 2EGsaajHZfM
--- a/toolkit/modules/LightweightThemeConsumer.jsm
+++ b/toolkit/modules/LightweightThemeConsumer.jsm
@@ -128,17 +128,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);
}