1 /* Tracking protection */
4 /* Don't notify servers when I leave a webpage.
8 * 1. https://bugzilla.mozilla.org/show_bug.cgi?id=1387745
11 user_pref("beacon.enabled", false);
14 /* Don't let websites query the battery status of my PC.
15 * This should now be disabled... but let's turn it off
16 * again, just in case.
20 * 1. https://bugzilla.mozilla.org/show_bug.cgi?id=1387745
21 * 2. https://bugzilla.mozilla.org/show_bug.cgi?id=1313580
22 * 3. https://wiki.mozilla.org/Privacy/Privacy_Task_Force/firefox_about_config_privacy_tweeks
24 user_pref("dom.battery.enabled", false);
27 /* Don't allow websites to spy on my copy/paste actions.
31 * 1. https://bugzilla.mozilla.org/show_bug.cgi?id=1387745
32 * 2. https://developer.mozilla.org/en-US/docs/Mozilla/Preferences/Preference_reference/dom.event.clipboardevents.enabled
33 * 3. https://wiki.mozilla.org/Privacy/Privacy_Task_Force/firefox_about_config_privacy_tweeks
35 user_pref("dom.event.clipboardevents.enabled", false);
38 /* Disable WebRTC. I don't need a web browser to chat, thanks.
42 * 1. https://restoreprivacy.com/webrtc-leaks/
43 * 2. https://wiki.mozilla.org/Media/WebRTC/Privacy
45 user_pref("media.peerconnection.enabled", false);
48 /* Don't allow websites to snoop on my webcam or microphone.
52 * 1. https://wiki.mozilla.org/Privacy/Privacy_Task_Force/firefox_about_config_privacy_tweeks
53 * 2. https://wiki.mozilla.org/Media/getUserMedia
55 user_pref("media.navigator.enabled", false);
58 /* Disable geolocation. Websites shouldn't know where I am,
59 * and neither should Google (whose API is used to track me).
63 * 1. http://www.mozilla.com/en-US/firefox/geolocation/
64 * 2. https://wiki.mozilla.org/Privacy/Privacy_Task_Force/firefox_about_config_privacy_tweeks
67 user_pref("geo.enabled", false);
70 /* Disable WebGL. I actually don't need websites to be able to
71 * directly access my video hardware.
75 * 1. https://www.contextis.com/en/blog/webgl-a-new-dimension-for-browser-exploitation
78 user_pref("webgl.disabled", true);
81 /* Disable DNS-over-HTTPS (DoH), which is a helpful service that sends
82 * all of your DNS requests to Cloudflare. DoH is presently disabled
83 * by default in Gentoo, but let's disable it again so that we're not
84 * subject to the whims of the Gentoo security/privacy zeitgeist.
88 * 1. https://wiki.mozilla.org/Trusted_Recursive_Resolver#network.trr.mode
91 user_pref("network.trr.mode", 5);
94 /* Disable the "Normandy" service, which allows Mozilla to force-push
95 * invasive (the irony of word-association is not lost here) preference
96 * updates to your browser. Normandy is presently disabled by default in
97 * Gentoo, but it's the sort of thing worth killing twice, just to be sure.
101 * 1. https://wiki.mozilla.org/Firefox/Normandy/PreferenceRollout
102 * 2. https://wiki.mozilla.org/Firefox/Shield/Heartbeat
105 user_pref("app.normandy.enabled", false);