Skip to content

Commit 4bc0dcd

Browse files
committed
Bug 1971487 - Stop setting lwtheme attribute in contentTheme.js, and revert the previous patch. r=desktop-theme-reviewers,dao
This is to land after the soft freeze. I added this for bug 1877298, and since then we stopped trying to do what that bug was doing. Now it's unused, and after the regressing bug it causes problems, because the presence of a theme is not indicative of whether the page should itself be themed (that's for [lwt-{sidebar,newtab}] attributes to decide). Differential Revision: https://phabricator.services.mozilla.com/D254528
1 parent 504ea07 commit 4bc0dcd

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

browser/base/content/contentTheme.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@
195195
*/
196196
_setProperties(themeData) {
197197
const root = document.documentElement;
198-
root.toggleAttribute("lwtheme", themeData.hasTheme);
199198
for (let [cssVarName, definition] of inContentVariableMap) {
200199
const { lwtProperty, processColor } = definition;
201200
let value = themeData[lwtProperty];

browser/components/sidebar/sidebar.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@
1515
color: var(--sidebar-text-color);
1616
height: 100%;
1717

18-
&:not([lwt-sidebar]) {
19-
/* Prevent :root[lwtheme] in global-shared.css from forcing our
20-
* color-scheme to light when unthemed */
21-
color-scheme: light dark;
22-
}
23-
2418
&[lwt-sidebar="light"] {
2519
color-scheme: light;
2620
}

browser/themes/shared/places/sidebar.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@
99
/* Background color comes from the embedder */
1010
background-color: transparent;
1111
color: var(--sidebar-text-color);
12-
13-
&:not([lwt-sidebar]) {
14-
/* Prevent :root[lwtheme] in global-shared.css from forcing our
15-
* color-scheme to light when unthemed */
16-
color-scheme: light dark;
17-
}
1812
}
1913

2014
#sidebar-panel-header {

0 commit comments

Comments
 (0)