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