From 0bf4312c9e021aa0a3bc98c396ee02caa937fc92 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sun, 9 Jun 2024 18:39:55 +0300 Subject: [PATCH] firefox: explicitly configure font whitelist I have made the mistake of installing fonts with an asterisk so I have unique fingerprint anyway and might as well have some control over which fonts I have. Plus this allows me to use OpenDyslexic with DarkReader --- conf/firefox-forbidden-policies.js | 5 +++++ etc/firefox/policies/policies.json | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/conf/firefox-forbidden-policies.js b/conf/firefox-forbidden-policies.js index 3973cf79..a1b9c0c3 100644 --- a/conf/firefox-forbidden-policies.js +++ b/conf/firefox-forbidden-policies.js @@ -50,6 +50,11 @@ lockPref("font.name.sans-serif.x-western", "Liberation Sans"); lockPref("font.name.serif.el", "Liberation Serif"); lockPref("font.name.serif.x-cyrillic", "Liberation Serif"); lockPref("font.name.serif.x-western", "Liberation Serif"); +// Allow these fonts regardless of the fingerprinting resistance +lockPref( + "font.system.whitelist", + "Liberation Serif, Tinos, Times New Roman, Liberation Sans, Arimo, Arial, Liberation Mono, Cousine, Courier New, Noto Sans, Noto Serif, Noto Mono, OpenDyslexic, Noto Emoji, Noto Color Emoji, Comic Neue", +); // Play animated images only once, accessibility. lockPref("image.animation.mode", "once"); diff --git a/etc/firefox/policies/policies.json b/etc/firefox/policies/policies.json index 8f417dd5..4251690a 100644 --- a/etc/firefox/policies/policies.json +++ b/etc/firefox/policies/policies.json @@ -539,6 +539,12 @@ "Type": "string", "Value": "Liberation Serif" }, + "font.system.whitelist": { + "Comment": "Preference not allowed for stability reasons.", + "Status": "default", + "Type": "string", + "Value": "Liberation Serif, Tinos, Times New Roman, Liberation Sans, Arimo, Arial, Liberation Mono, Cousine, Courier New, Noto Sans, Noto Serif, Noto Mono, OpenDyslexic, Noto Emoji, Noto Color Emoji, Comic Neue" + }, "general.config.obscure_value": { "Comment": "Required for autoconfig.", "Status": "locked",