mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 07:13:20 +00:00
Bug 1722908 - Make accent-color foreground-computation prefs atomic. r=jnicol
When there are remote processes we query all colors on the main thread as part of the pref update, but otherwise this code can totally run OMT, and we hit the thread-safety assert in: https://searchfox.org/mozilla-central/rev/cfc40681e13089f92fb3f5f67d5d527fb04d9505/modules/libpref/init/StaticPrefListBegin.h#23 Differential Revision: https://phabricator.services.mozilla.com/D121199
This commit is contained in:
parent
9846c1cbf9
commit
a6332e6c05
@ -6830,7 +6830,7 @@
|
|||||||
# We don't use this for text, so we need a contrast of at least AA (for user
|
# We don't use this for text, so we need a contrast of at least AA (for user
|
||||||
# interface components and graphical objects), which per WCAG is 3:1
|
# interface components and graphical objects), which per WCAG is 3:1
|
||||||
- name: layout.css.accent-color.min-contrast-ratio
|
- name: layout.css.accent-color.min-contrast-ratio
|
||||||
type: float
|
type: AtomicFloat
|
||||||
value: 3.0
|
value: 3.0
|
||||||
mirror: always
|
mirror: always
|
||||||
|
|
||||||
@ -6840,7 +6840,7 @@
|
|||||||
# We aim a bit further than the minimum contrast ratio, which seems to provide
|
# We aim a bit further than the minimum contrast ratio, which seems to provide
|
||||||
# nice results in practice.
|
# nice results in practice.
|
||||||
- name: layout.css.accent-color.darkening-target-contrast-ratio
|
- name: layout.css.accent-color.darkening-target-contrast-ratio
|
||||||
type: float
|
type: AtomicFloat
|
||||||
value: 6.0
|
value: 6.0
|
||||||
mirror: always
|
mirror: always
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user