From 9029508c589ee6fe887daff49fbb6a4e9be31c5d Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Tue, 16 Jul 2024 20:13:20 -0400 Subject: [PATCH] Fix dark mode in firefox. --- ansible/roles/firefox/defaults/main.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ansible/roles/firefox/defaults/main.yaml b/ansible/roles/firefox/defaults/main.yaml index 6517d50..1bf52d5 100644 --- a/ansible/roles/firefox/defaults/main.yaml +++ b/ansible/roles/firefox/defaults/main.yaml @@ -27,9 +27,14 @@ firefox_config: dom.battery.enabled: false # Disable that websites can get notifications if you copy, paste, or cut something from a web page, and it lets them know which part of the page had been selected. dom.event.clipboardevents.enabled: false - # Resist fingerprinting - privacy.resistFingerprinting: true # Isolates all browser identifier sources (e.g. cookies) to the first party domain, with the goal of preventing tracking across different domains. privacy.firstparty.isolate: true # Do not preload URLs that auto-complete in the address bar. browser.urlbar.speculativeConnect.enabled: false + # Do not resist fingerprinting because that tells websites to use light mode. + # https://bugzilla.mozilla.org/show_bug.cgi?id=1732114 + privacy.resistFingerprinting: true + # Instead, enable fingerprinting protection, which allows configuring an override. + privacy.fingerprintingProtection: true + # Allow sending dark mode preference to websites. + privacy.fingerprintingProtection.overrides: "+AllTargets,-CSSPrefersColorScheme"