From 94dab5a2d4c685ab549c7ef81634ec247e5e6bee Mon Sep 17 00:00:00 2001
From: Tad <tad@spotco.us>
Date: Wed, 27 Jul 2022 06:29:01 -0400
Subject: [PATCH] Prevent leaking theme accent

- `widget.non-native-theme.enabled` still seems to leak theme accent on
  Android and GTK
- Fix this by setting false `widget.non-native-theme.use-theme-accent`

Signed-off-by: Tad <tad@spotco.us>
---
 user.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/user.js b/user.js
index 43a44f5..c8f1fe9 100644
--- a/user.js
+++ b/user.js
@@ -920,11 +920,13 @@ user_pref("browser.startup.blankWindow", false);
  * [SETTING] General>Language and Appearance>Fonts and Colors>Colors>Use system colors ***/
 user_pref("browser.display.use_system_colors", false); // [DEFAULT false NON-WINDOWS]
 /* 4511: enforce non-native widget theme
+ * additionally disable use of theme accent
  * Security: removes/reduces system API calls, e.g. win32k API [1]
  * Fingerprinting: provides a uniform look and feel across platforms [2]
  * [1] https://bugzilla.mozilla.org/1381938
  * [2] https://bugzilla.mozilla.org/1411425 ***/
 user_pref("widget.non-native-theme.enabled", true); // [DEFAULT: true]
+user_pref("widget.non-native-theme.use-theme-accent", false);
 /* 4512: enforce links targeting new windows to open in a new tab instead
  * 1=most recent window or tab, 2=new window, 3=new tab
  * Stops malicious window sizes and some screen resolution leaks.