44// Privafox-Firefox Version : 2.1
55// ==============================
66//
7- // Privafox-Firefox : Firefox settings for a better security, privacy and performances
7+ // Privafox-Firefox : Firefox settings for a better security, privacy and performance
88//
99// Mozilla.cfg : Locking firefox settings for security, privacy & prevent settings changes
1010//
2424// ==============================
2525//
2626// " Section" : Description of the settings section separated by " ----"
27- // " Bench Diff" : Impact on the performances of firefox can be a gain or loss of performance
27+ // " Bench Diff" : Impact on the performance of firefox can be a gain or loss of performance
2828// +100/5000 stand for 2% gained performance and -1500/5000 stand for -30% performance loss
2929// Performance can be tested here : https://intika.github.io/octane/
3030// " Pref" : Preference/Settings name and or description followed by links or documentations
@@ -56,33 +56,33 @@ lockPref("general.config.filename", "mozilla.cfg");
5656//
5757// -----------------------------------------------------------------------
5858// Section : User settings // Bench Diff : +0 / 5000
59- // Section : Defaulting Settings // Bench Diff : ??? / 5000
59+ // Section : Defaulting Settings // Bench Diff : +0 / 5000
6060// -------------------------------------------
6161// Section : Controversial // Bench Diff : +0 / 5000
6262// Section : Firefox Fingerprint // Bench Diff : +0 / 5000
6363// Section : Locale/Time // Bench Diff : +0 / 5000
6464// Section : Ghacks-user Selection // Bench Diff : +100 / 5000
65- // Section : Extensions Manager // Bench Diff : ??? / 5000
66- // Section : IJWY To Shut Up // Bench Diff : ??? / 5000
67- // Section : Microsoft Windows // Bench Diff : ??? / 5000
68- // Section : Firefox ESR60.x // Bench Diff : ??? / 5000
65+ // Section : Extensions Manager // Bench Diff : +0 / 5000
66+ // Section : IJWY To Shut Up // Bench Diff : +0 / 5000
67+ // Section : Microsoft Windows // Bench Diff : +0 / 5000
68+ // Section : Firefox ESR60.x // Bench Diff : +0 / 5000
6969// -------------------------------------------
7070// Section : Security 1/3 // Bench Diff : +0 / 5000
7171// Section : Security 2/3 // Bench Diff : +0 / 5000
7272// Section : Security 3/3 (Cipher) // Bench Diff : +0 / 5000
7373// -------------------------------------------
74- // Section : Performances 1/5 // Bench Diff : +650 / 5000
75- // Section : Performances 2/5 // Bench Diff : -800 / 5000
76- // Section : Performances 3/5 // Bench Diff : -1720 / 5000
77- // Section : Performances 4/5 // Bench Diff : -200 / 5000
78- // Section : Performances 5/5 // Bench Diff : -50 / 5000
74+ // Section : Performance 1/5 // Bench Diff : +650 / 5000
75+ // Section : Performance 2/5 // Bench Diff : -800 / 5000
76+ // Section : Performance 3/5 // Bench Diff : -1720 / 5000
77+ // Section : Performance 4/5 // Bench Diff : -200 / 5000
78+ // Section : Performance 5/5 // Bench Diff : -50 / 5000
7979// -------------------------------------------
8080// Section : General Settings 1/3 // Bench Diff : +100 / 5000
8181// Section : General Settings 2/3 // Bench Diff : +0 / 5000
8282// Section : General Settings 3/3 // Bench Diff : -40 / 5000
8383// -------------------------------------------
84- // Section : Disabled - ON/OFF // Bench Diff : ??? / 5000
85- // Section : Disabled - Deprecated Active // Bench Diff : ??? / 5000
84+ // Section : Disabled - ON/OFF // Bench Diff : +0 / 5000
85+ // Section : Disabled - Deprecated Active // Bench Diff : +0 / 5000
8686// Section : Disabled - Deprecated Inactive // Bench Diff : +0 / 5000
8787// -----------------------------------------------------------------------
8888//
@@ -153,7 +153,7 @@ lockPref("network.cookie.thirdparty.nonsecureSessionOnly", false); // (FF58+) //
153153// is disabled in Librefox. it' s recommended to use ublock instead.
154154// This feature is disabled :
155155// - Until it evolve and integrate at least list editing
156- // - Because double filtering (this + ublock) is not suitable for performances .
156+ // - Because double filtering (this + ublock) is not suitable for performance .
157157
158158// Pref : Track Protection
159159lockPref(" privacy.trackingprotection.enabled" , false);
@@ -588,8 +588,8 @@ lockPref("permissions.default.geo", 2);
588588// Section : Defaulting Settings
589589// Those settings are not locked this section purpose is to change default setting...
590590// Modifications can still be done within firefox
591- // Bench Diff : ??? /5000
592- // >>>>>>>>>>>>>>>>>>>>>
591+ // Bench Diff : +0 /5000
592+ // >>>>>>>>>>>>>>>>>>>>
593593
594594// ----------------------------------------------------------------------------------------------------
595595// Defaulting Settings : Other Defaulting
@@ -695,7 +695,7 @@ defaultPref("extensions.ui.experiment.hidden", false);
695695//defaultPref("extensions.ui.dictionary.hidden", false);
696696//defaultPref("extensions.ui.locale.hidden", false);
697697
698- // Pref : Pref tied to privafox , displaying small density by default
698+ // Pref : Pref tied to librefox , displaying small density by default
699699// Small icons...
700700defaultPref("browser.uidensity", 1);
701701
@@ -797,10 +797,12 @@ lockPref("intl.locale.requested", "en-US");
797797// Pref : Spoof User-agent (disabled)
798798// Disabled to make resistFingerprinting efficient
799799//lockPref(" general.useragent.override" , " Mozilla/5.0 (Windows NT 6.1; rv:45.0) Gecko/20100101 Firefox/45.0, 45");
800- //lockPref(" general.appname.override" , " Netscape" );
801- //lockPref(" general.appversion.override" , " 5.0 (Windows)" );
802- //lockPref(" general.platform.override" , " Win32" );
803- //lockPref(" general.oscpu.override" , " Windows NT 6.1" );
800+
801+ // Pref : This does not work with resistFingerprinting... (Still needed for ESR)
802+ lockPref(" general.appname.override" , " Netscape" );
803+ lockPref(" general.appversion.override" , " 5.0 (Windows)" );
804+ lockPref(" general.platform.override" , " Win32" );
805+ lockPref(" general.oscpu.override" , " Windows NT 6.1" );
804806
805807// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
806808// Section : Ghacks-user Selection
@@ -843,7 +845,8 @@ lockPref("offline-apps.allow_by_default", false);
843845// [1] https://mike.kaply.com/2012/02/21/understanding-add-on-scopes/
844846// [1] archived: https://archive.is/DYjAM
845847lockPref("extensions.enabledScopes", 1); // (hidden pref)
846- lockPref("extensions.autoDisableScopes", 15);
848+ // Tor-compatibility-patch
849+ lockPref("extensions.autoDisableScopes", 15); //Tor value must be 0
847850// Pref : 2663: enable warning when websites try to install add-ons
848851// [SETTING] Privacy & Security>Permissions>Warn you when websites try to install add-ons
849852lockPref("xpinstall.whitelist.required", true); // default: true
@@ -1039,8 +1042,8 @@ lockPref("permissions.manager.defaultsUrl", "");
10391042// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
10401043// Section : Extensions Manager
10411044// Extensions settings and experimental tentative to firewall extensions
1042- // Bench Diff : ??? /5000
1043- // >>>>>>>>>>>>>>>>>>>>>
1045+ // Bench Diff : +0 /5000
1046+ // >>>>>>>>>>>>>>>>>>>>
10441047
10451048// ----------------------------------------------------------------------------------
10461049// Extensions Firewalling - Blocking Domains :
@@ -1135,8 +1138,8 @@ lockPref("extensions.webcompat-reporter.newIssueEndpoint", "");
11351138lockPref("extensions.webcompat-reporter.enabled", false); // Default true
11361139
11371140// ----------------------------------------------------------------------------------
1138- // Extensions Performances :
1139- // -------------------------
1141+ // Extensions Performance :
1142+ // ------------------------
11401143
11411144// Pref : Delaying extensions background script startup
11421145defaultPref("extensions.webextensions.background-delayed-startup", true); //default true
@@ -1158,8 +1161,8 @@ defaultPref("extensions.webextensions.background-delayed-startup", true); //defa
11581161// I Just Want You To Shut Up : Closing all non necessary communication to mozilla.org etc.
11591162// Thoses settings are not used in gHacks for the moment.
11601163// Will be upstreamed once stable in final version.
1161- // Bench Diff : ??? /5000
1162- // >>>>>>>>>>>>>>>>>>>>>
1164+ // Bench Diff : +0 /5000
1165+ // >>>>>>>>>>>>>>>>>>>>
11631166
11641167// Pref : Disabling performance addon url [FF64+]
11651168lockPref("devtools.performance.recording.ui-base-url", "");
@@ -1654,8 +1657,8 @@ lockPref("prio.publicKeyB", "");
16541657
16551658// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
16561659// Section : Microsoft Windows
1657- // Bench Diff : ??? /5000
1658- // >>>>>>>>>>>>>>>>>>>>>
1660+ // Bench Diff : +0 /5000
1661+ // >>>>>>>>>>>>>>>>>>>>
16591662
16601663// Pref : Other webGl [WINDOWS]
16611664lockPref("webgl.dxgl.enabled", false);
@@ -1694,8 +1697,8 @@ lockPref("security.family_safety.mode", 0);
16941697// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
16951698// Section : Firefox ESR60.x
16961699// Deprecated Active For ESR
1697- // Bench Diff : ??? /5000
1698- // >>>>>>>>>>>>>>>>>>>>>
1700+ // Bench Diff : +0 /5000
1701+ // >>>>>>>>>>>>>>>>>>>>
16991702
17001703// Pref : Geolocation
17011704lockPref("browser.search.countryCode", "US");
@@ -1868,7 +1871,7 @@ lockPref("security.ssl3.ecdh_rsa_rc4_128_sha", false);
18681871lockPref(" security.ssl3.rsa_seed_sha" , false);
18691872
18701873// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
1871- // Section : Performances 1/5
1874+ // Section : Performance 1/5
18721875// Defaulting settings - HW Settings can be checked under about:support
18731876// Bench Diff : +650/5000
18741877// >>>>>>>>>>>>>>>>>>>>>>
@@ -1881,6 +1884,7 @@ defaultPref("layout.frame_rate.precise", true);
18811884// Pref : Enable Hardware Acceleration and Off Main Thread Compositing (OMTC).
18821885// It' s likely your browser is already set to use these features.
18831886// May introduce instability on some hardware.
1887+ // Tor compatibility - have inverted values in tor.
18841888defaultPref("webgl.force-enabled", true);
18851889defaultPref("layers.acceleration.force-enabled", true);
18861890
@@ -1913,7 +1917,7 @@ defaultPref("browser.tabs.animate", false);
19131917//defaultPref("dom.maxHardwareConcurrency", 8);
19141918
19151919// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
1916- // Section : Performances 2/5
1920+ // Section : Performance 2/5
19171921// Bench Diff : -800/5000
19181922// >>>>>>>>>>>>>>>>>>>>>>
19191923
@@ -1928,25 +1932,26 @@ defaultPref("browser.tabs.animate", false);
19281932// https://webassembly.org/
19291933// https://en.wikipedia.org/wiki/WebAssembly
19301934// https://trac.torproject.org/projects/tor/ticket/21549
1931- // Solved with extension disabled here for performances
1935+ // Solved with extension disabled here for performance
19321936//lockPref("javascript.options.wasm", false);
19331937
19341938// Bench Diff : -100/5000
19351939// Pref : Prevent font fingerprinting
19361940// https://browserleaks.com/fonts
19371941// https://github.com/pyllyukko/user.js/issues/120
1938- // Solved with extension disabled here for performances
1942+ // Solved with extension disabled here for performance
19391943//lockPref("browser.display.use_document_fonts", 0);
19401944
19411945// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
1942- // Section : Performances 3/5
1946+ // Section : Performance 3/5
19431947// Bench Diff : -1720/5000
19441948// >>>>>>>>>>>>>>>>>>>>>>>
19451949
19461950// Bench Diff : -220/5000
19471951// Pref : Disable webGL I/II
19481952// WebGL introduce high fingerprinting... (webgl is direct hardware js)
1949- lockPref("webgl.disabled", true);
1953+ defaultPref("webgl.disabled", false); // Tor have it false but the rest is the same (webgl)
1954+ // This does not leak
19501955lockPref("webgl.enable-webgl2", false);
19511956lockPref("webgl.min_capability_mode", true);
19521957
@@ -1964,11 +1969,12 @@ lockPref("webgl.enable-debug-renderer-info", false); //Deprecated Active
19641969// https://www.mozilla.org/en-US/security/advisories/mfsa2015-29/
19651970// https://www.mozilla.org/en-US/security/advisories/mfsa2015-50/
19661971// https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-2712
1967- // Solved with extension disabled here for performances
1972+ // Solved with extension disabled here for performance
1973+ // Tor enforce this
19681974//lockPref("javascript.options.asmjs", false);
19691975
19701976// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
1971- // Section : Performances 4/5
1977+ // Section : Performance 4/5
19721978// Bench Diff : -200/5000
19731979// >>>>>>>>>>>>>>>>>>>>>>
19741980
@@ -1978,7 +1984,7 @@ lockPref("webgl.enable-debug-renderer-info", false); //Deprecated Active
19781984lockPref("javascript.options.shared_memory", false);
19791985
19801986// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
1981- // Section : Performances 5/5
1987+ // Section : Performance 5/5
19821988// Bench Diff : -50/5000
19831989// >>>>>>>>>>>>>>>>>>>>>
19841990
@@ -1987,8 +1993,8 @@ lockPref("javascript.options.shared_memory", false);
19871993// Service workers essentially act as proxy servers that sit between web apps, and the browser
19881994// and network, are event driven, and can control the web page/site it is associated with,
19891995// intercepting and modifying navigation and resource requests, and caching resources.
1990- // SW may decrease performances depending on the script this ot that site is running in background
1991- // So overall disabling SW should enhance performances because it block SW Scripts
1996+ // SW may decrease performance depending on the script this ot that site is running in background
1997+ // So overall disabling SW should enhance performance because it block SW Scripts
19921998// [NOTE] Service worker APIs are hidden (in Firefox) and cannot be used when in PB mode.
19931999// [NOTE] Service workers only run over HTTPS. Service Workers have no DOM access.
19942000lockPref("dom.serviceWorkers.enabled", false);
@@ -2585,8 +2591,8 @@ lockPref("browser.pagethumbnails.capturing_disabled", true);
25852591
25862592// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
25872593// Section : Disabled - ON/OFF
2588- // Bench Diff : ??? /5000
2589- // >>>>>>>>>>>>>>>>>>>>>
2594+ // Bench Diff : +0 /5000
2595+ // >>>>>>>>>>>>>>>>>>>>
25902596
25912597// - Disabled - Section OFF -----------------------------------------------------------------
25922598
@@ -2773,7 +2779,7 @@ lockPref("browser.pagethumbnails.capturing_disabled", true);
27732779// [NOTE] Not recommended due to performance issues
27742780// lockPref(" browser.cache.memory.enable" , false);
27752781// lockPref(" browser.cache.memory.capacity" , 0); // (hidden pref)
2776- // This is going too far... disabled for performances
2782+ // This is going too far... disabled for performance
27772783// Firefox should be run in a container... sandbox or...
27782784
27792785// Pref : Newtabpage
@@ -2877,8 +2883,8 @@ lockPref("security.tls.version.max", 4); // 4 = allow up to and including TLS 1.
28772883// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
28782884// Section : Disabled - Deprecated Active
28792885// Deprecated settings but left active for various reasons
2880- // Bench Diff : ??? /5000
2881- // >>>>>>>>>>>>>>>>>>>>>
2886+ // Bench Diff : +0 /5000
2887+ // >>>>>>>>>>>>>>>>>>>>
28822888
28832889// Pref : 0516 : disable Onboarding (FF55+)
28842890// Onboarding is an interactive tour/setup for new installs/profiles and features. Every time
0 commit comments