Backed out 2 changesets (bug 1719734, bug 1710934) for causing bc failures in browser_ext_themes_highlight. CLOSED TREE

Backed out changeset 74a832b24286 (bug 1719734)
Backed out changeset 9f6b5145351a (bug 1710934)
This commit is contained in:
Sandor Molnar 2021-07-13 18:29:26 +03:00
Родитель 0132f4c4df
Коммит dab21ee839
3 изменённых файлов: 7 добавлений и 22 удалений

Просмотреть файл

@ -142,27 +142,10 @@
border-color: color-mix(in srgb, currentColor 20%, transparent);
}
#urlbar-input:-moz-lwtheme::selection,
.searchbar-textbox:-moz-lwtheme::selection {
background-color: var(--lwt-toolbar-field-highlight, -moz-system-color(text-select-background, light));
color: var(--lwt-toolbar-field-highlight-text, -moz-system-color(text-select-foreground, light));
}
#urlbar-input:not(:focus):-moz-lwtheme::selection,
.searchbar-textbox:not(:focus-within):-moz-lwtheme::selection {
background-color: -moz-system-color(text-select-background-disabled, light);
}
:root[lwt-toolbar-field-focus-brighttext] #urlbar-input:focus::selection,
:root[lwt-toolbar-field-focus-brighttext] .searchbar-textbox:focus-within::selection {
background-color: var(--lwt-toolbar-field-highlight, -moz-system-color(text-select-background, dark));
color: var(--lwt-toolbar-field-highlight-text, -moz-system-color(text-select-foreground, dark));
}
:root[lwt-toolbar-field-brighttext] #urlbar-input:not(:focus)::selection,
:root[lwt-toolbar-field-brighttext] .searchbar-textbox:not(:focus-within)::selection {
background-color: var(--lwt-toolbar-field-highlight, -moz-system-color(text-select-background-disabled, dark));
color: var(--lwt-toolbar-field-highlight-text, -moz-system-color(text-select-foreground, dark));
:root[lwt-selection] #urlbar-input:-moz-lwtheme::selection,
:root[lwt-selection] .searchbar-textbox:-moz-lwtheme::selection {
background-color: var(--lwt-toolbar-field-highlight, Highlight);
color: var(--lwt-toolbar-field-highlight-text, HighlightText);
}
#urlbar:not([focused="true"]) {

Просмотреть файл

@ -11563,7 +11563,7 @@
- name: widget.macos.support-dark-appearance
type: RelaxedAtomicBool
value: true
value: @IS_EARLY_BETA_OR_EARLIER@
mirror: always
#endif

Просмотреть файл

@ -195,8 +195,10 @@ const toolkitVariableMap = [
lwtProperty: "toolbar_field_highlight",
processColor(rgbaChannels, element) {
if (!rgbaChannels) {
element.removeAttribute("lwt-selection");
return null;
}
element.setAttribute("lwt-selection", "true");
const { r, g, b, a } = rgbaChannels;
return `rgba(${r}, ${g}, ${b}, ${a})`;
},