Skip to content

Commit 3f2f26b

Browse files
author
Butkovits Atila
committed
Backed out changeset f1089681a6c6 (bug 1946764) for causing failures at browser_preferences_usage.js.
1 parent c50e52a commit 3f2f26b

34 files changed

+127
-238
lines changed

browser/components/genai/chat.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ body {
6666
z-index: 1;
6767

6868
/* stylelint-disable-next-line media-query-no-invalid */
69-
@media not -moz-pref("sidebar.revamp") {
69+
@media not (-moz-bool-pref: "sidebar.revamp") {
7070
display: none;
7171
}
7272
}

browser/components/sidebar/sidebar-main.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
44

55
/* stylelint-disable-next-line media-query-no-invalid */
6-
@media -moz-pref("sidebar.verticalTabs") {
6+
@media (-moz-bool-pref: "sidebar.verticalTabs") {
77
:host {
88
--button-size-icon: var(--tab-min-height);
99
--button-min-height: var(--button-size-icon);
@@ -24,7 +24,7 @@
2424
padding-inline: 0;
2525

2626
/* stylelint-disable-next-line media-query-no-invalid */
27-
@media -moz-pref("sidebar.verticalTabs") {
27+
@media (-moz-bool-pref: "sidebar.verticalTabs") {
2828
:host([expanded]) & {
2929
/* TODO: Should this be some other pixel value between 5/6? Need to be careful of Linux where font size is larger */
3030
--tab-pinned-horizontal-count: 5;

browser/themes/linux/browser.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
}
5050

5151
/* stylelint-disable-next-line media-query-no-invalid */
52-
@media -moz-pref("widget.gtk.rounded-bottom-corners.enabled") {
52+
@media (-moz-bool-pref: "widget.gtk.rounded-bottom-corners.enabled") {
5353
#navigator-toolbox {
5454
/* The body clip below covers this. */
5555
border-radius: 0;
@@ -101,7 +101,7 @@
101101
}
102102

103103
/* stylelint-disable-next-line media-query-no-invalid */
104-
@media -moz-pref("browser.urlbar.experimental.expandTextOnFocus") {
104+
@media (-moz-bool-pref: "browser.urlbar.experimental.expandTextOnFocus") {
105105
#urlbar[breakout-extend] {
106106
font-size: 1.14em;
107107
}
@@ -116,7 +116,7 @@
116116
/* Content area */
117117

118118
/* stylelint-disable-next-line media-query-no-invalid */
119-
@media not -moz-pref("sidebar.revamp") {
119+
@media not (-moz-bool-pref: "sidebar.revamp") {
120120
.sidebar-splitter {
121121
appearance: none;
122122
width: 6px;
@@ -205,7 +205,7 @@
205205
}
206206

207207
/* stylelint-disable-next-line media-query-no-invalid */
208-
@media -moz-pref("widget.gtk.non-native-titlebar-buttons.enabled") {
208+
@media (-moz-bool-pref: "widget.gtk.non-native-titlebar-buttons.enabled") {
209209
/* When using lightweight themes, use our own buttons since native ones might
210210
* assume a native background in order to be visible. */
211211
:root[lwtheme] & {

browser/themes/osx/browser.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010

1111
/* stylelint-disable-next-line media-query-no-invalid */
12-
@media -moz-pref("browser.theme.native-theme") {
12+
@media (-moz-bool-pref: "browser.theme.native-theme") {
1313
@media not (prefers-contrast) {
1414
:root:not([lwtheme]) {
1515
@media (prefers-color-scheme: light) {
@@ -125,7 +125,7 @@
125125
}
126126

127127
/* stylelint-disable-next-line media-query-no-invalid */
128-
@media -moz-pref("browser.urlbar.experimental.expandTextOnFocus") {
128+
@media (-moz-bool-pref: "browser.urlbar.experimental.expandTextOnFocus") {
129129
#urlbar[breakout-extend] {
130130
font-size: 1.36em;
131131
}

browser/themes/shared/browser-colors.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
--chrome-content-separator-color: light-dark(rgba(0,0,0,.3), rgba(255,255,255,.3));
4242

4343
/* stylelint-disable-next-line media-query-no-invalid */
44-
@media not -moz-pref("sidebar.revamp") {
44+
@media not (-moz-bool-pref: "sidebar.revamp") {
4545
&:not([lwtheme]) {
4646
--chrome-content-separator-color: ThreeDShadow;
4747
}
@@ -77,7 +77,7 @@
7777
* transparencies in order to look more native.
7878
*/
7979
/* stylelint-disable-next-line media-query-no-invalid */
80-
@media not ((prefers-contrast) or -moz-pref("browser.theme.native-theme")) {
80+
@media not ((prefers-contrast) or (-moz-bool-pref: "browser.theme.native-theme")) {
8181
:root:not([lwtheme]) {
8282
--color-accent-primary: light-dark(rgb(0, 97, 224), rgb(0, 221, 255));
8383
--button-text-color-primary: light-dark(rgb(251, 251, 254), rgb(43, 42, 51));
@@ -107,7 +107,7 @@
107107
--tabs-navbar-separator-style: none;
108108

109109
/* stylelint-disable-next-line media-query-no-invalid */
110-
@media not ((-moz-windows-mica) or ((-moz-windows-accent-color-in-titlebar) and -moz-pref("browser.theme.windows.accent-color-in-tabs.enabled"))) {
110+
@media not ((-moz-windows-mica) or ((-moz-windows-accent-color-in-titlebar) and (-moz-bool-pref: "browser.theme.windows.accent-color-in-tabs.enabled"))) {
111111
--toolbox-bgcolor: light-dark(rgb(240, 240, 244), rgb(28, 27, 34));
112112
--toolbox-textcolor: light-dark(rgb(21, 20, 26), rgb(251, 251, 254));
113113
--toolbox-bgcolor-inactive: var(--toolbox-bgcolor);
@@ -143,7 +143,7 @@
143143
}
144144

145145
/* stylelint-disable-next-line media-query-no-invalid */
146-
@media not -moz-pref("sidebar.revamp") {
146+
@media not (-moz-bool-pref: "sidebar.revamp") {
147147
--chrome-content-separator-color: light-dark(rgb(204, 204, 204), hsl(240, 5%, 5%));
148148
}
149149

browser/themes/shared/browser-shared.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ body {
5252
min-height: 120px;
5353

5454
/* stylelint-disable-next-line media-query-no-invalid */
55-
@media -moz-pref("sidebar.verticalTabs") {
55+
@media (-moz-bool-pref: "sidebar.verticalTabs") {
5656
min-width: 732px;
5757

5858
@media (-moz-platform: macos) {
@@ -192,7 +192,7 @@ body {
192192
}
193193

194194
/* stylelint-disable-next-line media-query-no-invalid */
195-
@media (-moz-platform: macos) and -moz-pref("browser.theme.native-theme") {
195+
@media (-moz-platform: macos) and (-moz-bool-pref: "browser.theme.native-theme") {
196196
/* Don't make the toolbox vibrant when in full-screen. macOS fullscreen has a
197197
* native titlebar outside of the window (revealed on hover) anyways. */
198198
:root[customtitlebar]:not([lwtheme], [macOSNativeFullscreen]) & {
@@ -222,7 +222,7 @@ body {
222222
color: inherit;
223223

224224
/* stylelint-disable-next-line media-query-no-invalid */
225-
@media not -moz-pref("sidebar.verticalTabs") {
225+
@media not (-moz-bool-pref: "sidebar.verticalTabs") {
226226
&:not(.browser-titlebar) {
227227
background-color: var(--toolbar-bgcolor);
228228
color: var(--toolbar-color);
@@ -305,7 +305,7 @@ body {
305305
}
306306

307307
/* stylelint-disable-next-line media-query-no-invalid */
308-
@media -moz-pref("sidebar.verticalTabs") {
308+
@media (-moz-bool-pref: "sidebar.verticalTabs") {
309309
&[type="pre-tabs"], &[type="post-tabs"] {
310310
display: none;
311311
}
@@ -415,7 +415,7 @@ body {
415415
}
416416

417417
/* stylelint-disable-next-line media-query-no-invalid */
418-
@media not -moz-pref("sidebar.verticalTabs") {
418+
@media not (-moz-bool-pref: "sidebar.verticalTabs") {
419419
#vertical-spacer {
420420
display: none;
421421
}

browser/themes/shared/customizableui/panelUI-shared.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ toolbarbutton[constrain-size="true"][cui-areatype="panel"] > .toolbarbutton-badg
909909
}
910910

911911
/* stylelint-disable-next-line media-query-no-invalid */
912-
@media not -moz-pref("identity.fxaccounts.toolbar.defaultVisible") {
912+
@media not (-moz-bool-pref: "identity.fxaccounts.toolbar.defaultVisible") {
913913
/* Hide the FxA toolbar button when its in the nav-bar, until in use */
914914
&[fxastatus="not_configured"] #widget-overflow-list > #fxa-toolbar-menu-button,
915915
&[fxastatus="not_configured"] #nav-bar-customization-target > #fxa-toolbar-menu-button {

browser/themes/shared/identity-block/identity-block.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
}
3131

3232
/* stylelint-disable-next-line media-query-no-invalid */
33-
@media -moz-pref("browser.urlbar.searchModeSwitcher.featureGate") or -moz-pref("browser.urlbar.scotchBonnet.enableOverride") {
33+
@media (-moz-bool-pref: "browser.urlbar.searchModeSwitcher.featureGate") or (-moz-bool-pref: "browser.urlbar.scotchBonnet.enableOverride") {
3434
#identity-box[pageproxystate="invalid"] {
3535
display: none;
3636
}
@@ -74,7 +74,7 @@
7474
#urlbar-label-box {
7575
margin-inline-end: 8px;
7676
/* stylelint-disable-next-line media-query-no-invalid */
77-
@media (-moz-pref("browser.urlbar.searchModeSwitcher.featureGate") or -moz-pref("browser.urlbar.scotchBonnet.enableOverride")) {
77+
@media ((-moz-bool-pref: "browser.urlbar.searchModeSwitcher.featureGate") or (-moz-bool-pref: "browser.urlbar.scotchBonnet.enableOverride")) {
7878
margin-inline-end: var(--urlbar-searchmodeswitcher-margin-inline-end);
7979
}
8080
}

browser/themes/shared/places/sidebar.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
}
2020

2121
/* stylelint-disable-next-line media-query-no-invalid */
22-
@media not -moz-pref("sidebar.revamp") {
22+
@media not (-moz-bool-pref: "sidebar.revamp") {
2323
display: none;
2424
}
2525
}

browser/themes/shared/preferences/preferences.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ radio {
257257
}
258258

259259
/* stylelint-disable-next-line media-query-no-invalid */
260-
@media not -moz-pref("browser.migrate.preferences-entrypoint.enabled") {
260+
@media not (-moz-bool-pref: "browser.migrate.preferences-entrypoint.enabled") {
261261
#dataMigrationGroup {
262262
display: none;
263263
}

0 commit comments

Comments
 (0)