{ /*** [SECTION 2000]: MEDIA / CAMERA / MIC ***/ /* 2001: disable WebRTC (Web Real-Time Communication) * [SETUP-WEB] WebRTC can leak your IP address from behind your VPN, but if this is not * in your threat model, and you want Real-Time Communication, this is the pref for you * [1] https://www.privacytools.io/#webrtc ***/ "media.peerconnection.enabled" = false; /* 2002: limit WebRTC IP leaks if using WebRTC * In FF70+ these settings match Mode 4 (Mode 3 in older versions) [3] * [TEST] https://browserleaks.com/webrtc * [1] https://bugzilla.mozilla.org/buglist.cgi?bug_id=1189041,1297416,1452713 * [2] https://wiki.mozilla.org/Media/WebRTC/Privacy * [3] https://tools.ietf.org/html/draft-ietf-rtcweb-ip-handling-12#section-5.2 ***/ "media.peerconnection.ice.default_address_only" = true; "media.peerconnection.ice.no_host" = true; # [FF51+] "media.peerconnection.ice.proxy_only_if_behind_proxy" = true; # [FF70+] /* 2022: disable screensharing ***/ "media.getusermedia.screensharing.enabled" = false; "media.getusermedia.browser.enabled" = false; "media.getusermedia.audiocapture.enabled" = false; /* 2024: set a default permission for Camera/Microphone [FF58+] * 0=always ask (default), 1=allow, 2=block * [SETTING] to add site exceptions: Ctrl+I>Permissions>Use the Camera/Microphone * [SETTING] to manage site exceptions: Options>Privacy & Security>Permissions>Camera/Microphone>Settings ***/ # // user_pref("permissions.default.camera", 2); # // user_pref("permissions.default.microphone", 2); /* 2030: disable autoplay of HTML5 media [FF63+] * 0=Allow all, 1=Block non-muted media (default in FF67+), 2=Prompt (removed in FF66), 5=Block all (FF69+) * [NOTE] You can set exceptions under site permissions * [SETTING] Privacy & Security>Permissions>Autoplay>Settings>Default for all websites ***/ # // user_pref("media.autoplay.default", 5); /* 2031: disable autoplay of HTML5 media if you interacted with the site [FF78+] * 0=sticky (default), 1=transient, 2=user * Firefox's Autoplay Policy Documentation [PDF] is linked below via SUMO * [NOTE] If you have trouble with some video sites, then add an exception (see 2030) * [1] https://support.mozilla.org/questions/1293231 ***/ "media.autoplay.blocking_policy" = 2; }