Update 'config/mozilla.cfg'

 Synced all the buildIDs with Tor's ones
 Added a pref (commented by default) to "Enable start in Private Browsing mode"
 Forced Startup page to blank
 Enabled clear cookies and site settings when you close FF
️ Disabled activity-stream.feeds.asrouterfeed from FF Home Content section
️Disabled telemetry for app menu protections button | FF73
️ Disabled tickle time under wifi network (no more packets transmitted trought 4886 port over Wi-Fi)
️ Disabled some more unwanted connections
️ Disabled two more VR prefs | FF73
️ Disabled by default the permission for VR | FF73
ℹ️ Reduced history leaks via enumeration (PER TAB: back/forward) from 20 to 3
ℹ️ Set to keep cookies until you close FF
ℹ️ Added some links and descriptions
ℹ️ Moved some preferences from FF72+ into deprecated section (keeping them active for ESR68.x)
This commit is contained in:
quindecim 2020-02-17 07:16:10 -05:00
parent 5ecdaab1f2
commit 476853f4e1
1 changed files with 85 additions and 21 deletions

View File

@ -21,14 +21,23 @@
// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
// PROTECTION
// >>>>>>>>>>>>>>>>>>>>>
// Pref : Locking mozilla.cfg itself
// Pref : Locking mozilla.cfg file itself
lockPref("general.config.filename", "mozilla.cfg");
//
// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
// Section : Startup
// >>>>>>>>>>>>>>>>>>>>>
// Pref : Enable start in Private Browsing mode
// lockPref("browser.privatebrowsing.autostart", true);
// -------------------------------------
// Pref : Disable default browser check
lockPref("browser.shell.checkDefaultBrowser", false); // [DESKTOP]
// -------------------------------------
// Pref : Set START page
// (0=blank, 1=home, 2=last visited page, 3=resume previous session)
// [NOTE] Session Restore is not used in PB mode and is cleared with history
lockPref("browser.startup.page", 0); // [DESKTOP]
// -------------------------------------
// Pref : Set NEWTAB page
// true=Activity Stream, false=blank page
lockPref("browser.newtabpage.enabled", false); // [DESKTOP]
@ -76,6 +85,7 @@ lockPref("browser.newtabpage.activity-stream.feeds.section.highlights", false);
lockPref("browser.newtabpage.activity-stream.feeds.sections", false); // [DESKTOP]
lockPref("browser.newtabpage.activity-stream.feeds.systemtick", false); // [DESKTOP]
lockPref("browser.newtabpage.activity-stream.feeds.topsites", false); // [DESKTOP]
lockPref("browser.newtabpage.activity-stream.feeds.asrouterfeed", false); // [DESKTOP]
// -------------------------------------
// Pref : Disable Activity Stream (others)
lockPref("browser.newtabpage.activity-stream.messageCenterExperimentEnabled", false);
@ -304,6 +314,7 @@ lockPref("security.protectionspopup.recordEventTelemetry", false); // [DESKTOP]
lockPref("toolkit.telemetry.geckoview.streaming", false);
lockPref("toolkit.telemetry.isGeckoViewMode", false);
lockPref("toolkit.telemetry.testing.overrideProductsCheck", false);
lockPref("security.app_menu.recordEventTelemetry", false); // [DESKTOP]
// -------------------------------------
// Pref : Disable Telemetry Coverage
// https://blog.mozilla.org/data/2018/08/20/effectively-measuring-search-in-firefox/
@ -381,7 +392,6 @@ lockPref("extensions.webservice.discoverURL", ""); // [DESKTOP]
// -------------------------------------
// Pref : Disable recommendations in about:addons Extensions and Themes panes
// https://www.ghacks.net/2019/05/15/enable-new-firefox-recommended-extensions-suggestions-in-firefox-68-nightly/
lockPref("extensions.htmlaboutaddons.discover.enabled", false); // [DESKTOP]
lockPref("extensions.htmlaboutaddons.inline-options.enabled", false);
lockPref("extensions.htmlaboutaddons.recommendations.enabled", false);
lockPref("extensions.getAddons.discovery.api_url", ""); // [DESKTOP]
@ -389,7 +399,6 @@ lockPref("extensions.recommendations.privacyPolicyUrl", "");
lockPref("extensions.recommendations.themeRecommendationUrl", "");
// -------------------------------------
// Pref : Disable extension's report option in about:addons
lockPref("extensions.htmlaboutaddons.enabled", false);
lockPref("extensions.abuseReport.enabled", false);
lockPref("extensions.abuseReport.url", "");
lockPref("extensions.abuseReport.amoDetailsURL", "");
@ -456,7 +465,7 @@ defaultPref("layout.spellcheckDefault", 0); // [DESKTOP]
// -------------------------------------
// Pref : Enable Firefox internal pages and disable the related warnings
lockPref("general.aboutConfig.enable", true);
lockPref("general.warnOnAboutConfig", false); // [XUL]
lockPref("general.warnOnAboutConfig", false); // [XUL/XHTML]
lockPref("browser.aboutConfig.showWarning", false); // [DESKTOP] // [HTML]
// -------------------------------------
// Pref : Disable recent Highlights in the Library
@ -481,6 +490,31 @@ lockPref("media.webvtt.testing.events", false);
// Pref : Disable Firefox Developer Tools
// https://developer.mozilla.org/en-US/docs/Tools
// lockPref("devtools.enabled", false);
// -------------------------------------
// Pref : Disable SSDP (Simple Service Discovery Protocol)
// https://bugzilla.mozilla.org/show_bug.cgi?id=1111967
lockPref("browser.casting.enabled", false); // [FENNEC]
// -------------------------------------
// Pref : Disable in-browser feed handling
// This preferences determines which web sites are listed in the “Subscription Options” dialog.
lockPref("browser.contentHandlers.types.0.title", ""); // [FENNEC]
lockPref("browser.contentHandlers.types.0.type", ""); // [FENNEC]
lockPref("browser.contentHandlers.types.0.uri", ""); // [FENNEC]
lockPref("browser.contentHandlers.types.1.title", ""); // [FENNEC]
lockPref("browser.contentHandlers.types.1.type", ""); // [FENNEC]
lockPref("browser.contentHandlers.types.1.uri", ""); // [FENNEC]
lockPref("browser.contentHandlers.types.2.title", ""); // [FENNEC]
lockPref("browser.contentHandlers.types.2.type", ""); // [FENNEC]
lockPref("browser.contentHandlers.types.2.uri", ""); // [FENNEC]
lockPref("browser.contentHandlers.types.3.title", ""); // [FENNEC]
lockPref("browser.contentHandlers.types.3.type", ""); // [FENNEC]
lockPref("browser.contentHandlers.types.3.uri", ""); // [FENNEC]
// -------------------------------------
// Pref : Disable tickle time under wifi network
// It transmit UDP busy-work to the LAN when anticipating low latency network reads and on wifi to mitigate 802.11 Power Save Polling delays
// If you're on wifi and an IPv4 DHCP network we will send 0 length UDP packets at port 4886 of your gateway at the default rate of 60hz for 400ms from the start of the transaction in an attempt to improve RTT during the critical early phases
// https://bugzilla.mozilla.org/show_bug.cgi?id=888268
lockPref("network.tickle-wifi.enabled", false);
//
// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
// Section : IJWY To Shut Up
@ -523,6 +557,7 @@ lockPref("startup.homepage_welcome_url.additional", ""); // [DESKTOP]
lockPref("startup.homepage_override_url", ""); // [DESKTOP]
lockPref("browser.search.param.yahoo-fr", ""); // [DESKTOP]
lockPref("privacy.restrict3rdpartystorage.partitionedHosts", "");
lockPref("browser.xr.warning.infoURL", ""); // [DESKTOP]
// -------------------------------------
// Pref : Devtools cleanup
lockPref("devtools.devices.url", "");
@ -586,11 +621,10 @@ lockPref("extensions.update.url", "https://versioncheck-bg.addons.mozilla.org/up
lockPref("extensions.update.background.url", "https://versioncheck-bg.addons.mozilla.org/update/VersionCheck.php?reqVersion=%REQ_VERSION%&id=%ITEM_ID%&version=%ITEM_VERSION%&maxAppVersion=%ITEM_MAXAPPVERSION%&status=%ITEM_STATUS%&appID=%APP_ID%&appVersion=%APP_VERSION%&appOS=%APP_OS%&appABI=%APP_ABI%&locale=en-US&currentAppVersion=%CURRENT_APP_VERSION%&updateType=%UPDATE_TYPE%&compatMode=%COMPATIBILITY_MODE%"); // [URL SANITIZED]
// -------------------------------------
// Pref : Decrease system information leakage to Mozilla addons update servers
lockPref("extensions.getAddons.browseAddons", "https://addons.mozilla.org/en-US/firefox/collections/4757633/mob/?page=1&collection_sort=-popularity"); // [URL SANITIZED] // [FENNEC]
lockPref("extensions.getAddons.browseAddons", ""); // [URL SANITIZED] // [FENNEC]
lockPref("extensions.getAddons.get.url", "https://services.addons.mozilla.org/api/v3/addons/search/?guid=%IDS%&lang=en-US"); // [URL SANITIZED]
lockPref("extensions.getAddons.link.url", "https://addons.mozilla.org/en-US/firefox/"); // [URL SANITIZED]
lockPref("extensions.getAddons.search.browseURL", "https://addons.mozilla.org/en-US/firefox/search?q=%TERMS%&platform=%OS%&appver=%VERSION%"); // [URL SANITIZED]
lockPref("extensions.getAddons.compatOverides.url", "https://services.addons.mozilla.org/api/v3/addons/compat-override/?guid=%IDS%&lang=en-US"); // [URL SANITIZED]
// -------------------------------------
// Pref : Disable Web Compatibility Reporter
// Web Compatibility Reporter adds a "Report Site Issue" button to send data to Mozilla
@ -615,6 +649,7 @@ lockPref("identity.fxaccounts.auth.uri", "");
lockPref("identity.fxaccounts.remote.oauth.uri", "");
lockPref("identity.fxaccounts.remote.profile.uri", "");
lockPref("identity.sync.tokenserver.uri", "");
lockPref("identity.fxaccounts.remote.webchannel.uri", ""); // [FENNEC - BUG] If left blank, it causes faded "Settings" on some devices
lockPref("identity.fxaccounts.remote.root", ""); // [DESKTOP]
lockPref("identity.fxaccounts.pairing.enabled", false); // [DESKTOP]
lockPref("identity.fxaccounts.remote.pairing.uri", ""); // [DESKTOP]
@ -980,8 +1015,8 @@ lockPref("dom.targetBlankNoOpener.enabled", true); // [DEFAULT: false]
// Pref : Don't reveal build ID
// Value taken from Tor Browser for Desktop
// https://bugzilla.mozilla.org/show_bug.cgi?id=583181
lockPref("browser.startup.homepage_override.buildID", "20200402050101");
lockPref("extensions.lastAppBuildId", "20190402030101");
lockPref("browser.startup.homepage_override.buildID", "20200402060101");
lockPref("extensions.lastAppBuildId", "20200402060101");
lockPref("media.gmp-manager.buildID", "20200402050101");
lockPref("browser.sessionstore.upgradeBackup.latestBuildID", ""); // [DESKTOP]
lockPref("general.buildID.override", "20100101");
@ -1081,7 +1116,7 @@ lockPref("browser.urlbar.trimURLs", false);
// Pref : Limit history leaks via enumeration (PER TAB: back/forward)
// This is a PER TAB session history. You still have a full history stored under all history
// Minimum=1=currentpage, 2 is the recommended minimum as some pages use it as a means of referral (e.g. hotlinking), 4 or 6 or 10 may be more practical
lockPref("browser.sessionhistory.max_entries", 20); // [DEFAULT: 50]
lockPref("browser.sessionhistory.max_entries", 3); // [DEFAULT: 50]
// -------------------------------------
// Pref : Disable coloring of visited links - CSS history leak
// [NOTE] This has NEVER been fully "resolved": in Mozilla/docs it is stated it's only in 'certain circumstances'
@ -1221,11 +1256,7 @@ lockPref("security.certerrors.mitm.auto_enable_enterprise_roots", false); // [DE
// https://developer.mozilla.org/en-US/docs/Web/API/Navigator/mediaDevices
lockPref("media.devices.insecure.enabled", false);
// -------------------------------------
// Pref : Disable FF Remote Agent
// https://dxr.mozilla.org/mozilla-central/source/remote/README
// https://dxr.mozilla.org/mozilla-central/source/remote/doc/Prefs.md
lockPref("remote.enabled", false); // [DESKTOP]
lockPref("remote.force-local", true); // [DESKTOP]
// Pref : Disable verbosity of the internal logger
lockPref("remote.log.level", ""); // [DESKTOP]
// -------------------------------------
// Pref : Disable security bypass buttons
@ -1601,7 +1632,6 @@ lockPref("signon.management.page.hideMobileFooter", true); // [DESKTOP]
lockPref("signon.management.page.mobileAndroidURL", ""); // [DESKTOP]
lockPref("signon.management.page.mobileAppleURL", ""); // [DESKTOP]
lockPref("signon.management.page.showPasswordSyncNotification", false); // [DESKTOP]
lockPref("signon.storeSignons", true); // [DESKTOP] (// Disable login manager storage. https://hg.mozilla.org/integration/autoland/rev/300057f0ec79)
// -------------------------------------
// Pref : Disable autofilling saved passwords on HTTP pages and show warning
// https://bugzilla.mozilla.org/buglist.cgi?bug_id=1217152,1319119
@ -2075,6 +2105,7 @@ lockPref("urlclassifier.features.socialtracking.whitelistTables", "");
lockPref("urlclassifier.features.socialtracking.annotate.whitelistTables", "");
lockPref("urlclassifier.features.socialtracking.annotate.blacklistTables", "");
lockPref("privacy.socialtracking.block_cookies.enabled", false); // [DESKTOP]
lockPref("privacy.socialtracking.notification.enabled", false); // [DESKTOP]
// -------------------------------------
// Pref : Disable PingCentre telemetry (used in several System Add-ons)
// Currently blocked by 'datareporting.healthreport.uploadEnabled'
@ -2121,9 +2152,8 @@ lockPref("extensions.formautofill.heuristics.enabled", false); // [DESKTOP]
// >>>>>>>>>>>>>>>>>>>>
// Pref : Delete cookies and site data on close
// 0=keep until they expire (default),1=Prompt for each cookie, 2=keep until you close Firefox, 3=Accept for N days
// [NOTE] Use "Cookie AutoDelete" extension to manage your cookies
// https://addons.mozilla.org/en-US/firefox/addon/cookie-autodelete/
// defaultPref("network.cookie.lifetimePolicy", 2);
lockPref("network.cookie.lifetimePolicy", 2);
// -------------------------------------
// Pref : Sets the number of days that the lifetime of cookies should be limited to
// [NOTE] Only use if network.cookie.lifetimePolicy is set to 3
@ -2188,13 +2218,13 @@ defaultPref("privacy.sanitize.sanitizeOnShutdown", true); // [DESKTOP]
// [NOTE] Clearing open windows on Firefox exit causes 2 windows to open when Firefox starts https://bugzilla.mozilla.org/show_bug.cgi?id=1334945
// [NOTE] If 'history' is true, downloads will also be cleared regardless of the value
defaultPref("privacy.clearOnShutdown.cache", true); // [DESKTOP]
defaultPref("privacy.clearOnShutdown.cookies", false); // [DESKTOP]
defaultPref("privacy.clearOnShutdown.cookies", true); // [DESKTOP]
defaultPref("privacy.clearOnShutdown.downloads", true); // [DESKTOP]
defaultPref("privacy.clearOnShutdown.formdata", true); // [DESKTOP]
defaultPref("privacy.clearOnShutdown.history", true); // [DESKTOP]
defaultPref("privacy.clearOnShutdown.offlineApps", true); // [DESKTOP]
defaultPref("privacy.clearOnShutdown.sessions", true); // [DESKTOP]
defaultPref("privacy.clearOnShutdown.siteSettings", false); // [DESKTOP]
defaultPref("privacy.clearOnShutdown.siteSettings", true); // [DESKTOP]
// lockPref("privacy.clearOnShutdown.openWindows", true); // [DESKTOP]
// -------------------------------------
// Pref : Reset default 'Time range to clear' for 'Clear Recent History'
@ -2388,6 +2418,12 @@ lockPref("gfx.vr.osvr.commonLibPath", "");
lockPref("gfx.vr.osvr.utilLibPath", "");
lockPref("dom.vr.process.enabled", false);
lockPref("dom.vr.webxr.enabled", false);
lockPref("dom.vr.always_support_ar", false);
lockPref("dom.vr.always_support_vr", false);
// -------------------------------------
// Pref : Block by default permission for Virtual Reality
// 0=always ask (default), 1=allow, 2=block
lockPref("permissions.default.xr", 2); // [DESKTOP]
// -------------------------------------
// Pref : Disable hardware acceleration to reduce graphics fingerprinting
// [WARNING] Affects text rendering (fonts will look different), impacts video performance, and parts of Quantum that utilize the GPU will also be affected as they are rolled out
@ -2420,7 +2456,7 @@ lockPref("dom.network.enabled", false); // [DESKTOP]
// Section : UI (User Interface)
// >>>>>>>>>>>>>>>>>>>>>
// Pref : Disable third-party cookie UI
lockPref("browser.contentblocking.rejecttrackers.ui.enabled", false);
lockPref("browser.contentblocking.rejecttrackers.ui.enabled", false); // [DESKTOP]
// -------------------------------------
// Pref : Disable tracking protection UI list editing under preferences
lockPref("browser.contentblocking.trackingprotection.ui.enabled", false); // [DESKTOP]
@ -2430,7 +2466,7 @@ defaultPref("browser.download.autohideButton", false); // [DESKTOP]
// -------------------------------------
// Pref : Disable browser animation
// https://bugzilla.mozilla.org/show_bug.cgi?id=1352069
defaultPref("toolkit.cosmeticAnimations.enabled", false); // [DESKTOP]
defaultPref("toolkit.cosmeticAnimations.enabled", false);
//
// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
// Section : Personal
@ -2654,4 +2690,32 @@ lockPref("toolkit.telemetry.hybridContent.enabled", false);
// lockPref("dom.indexedDB.enabled", false);
// -------------------------------------
// FF73+
// -------------------------------------
// Pref : Decrease system information leakage to Mozilla addons update servers
// https://bugzilla.mozilla.org/show_bug.cgi?id=1572140
// https://hg.mozilla.org/mozilla-central/rev/6537d7cbffe8
lockPref("extensions.getAddons.compatOverides.url", "");
// -------------------------------------
// Pref : Remove remote discovery pane from about:addons
// https://bugzilla.mozilla.org/show_bug.cgi?id=1337627
// https://hg.mozilla.org/mozilla-central/rev/e542391fb8c5
lockPref("extensions.htmlaboutaddons.discover.enabled", false);
// -------------------------------------
// Pref : Remove extensions.htmlaboutaddons.enabled pref
// https://bugzilla.mozilla.org/show_bug.cgi?id=1564525
// https://hg.mozilla.org/mozilla-central/rev/7bcf4117a172
lockPref("extensions.htmlaboutaddons.enabled", false);
// -------------------------------------
// Pref : Disable ship remote agent in Firefox Nightly
// https://bugzilla.mozilla.org/show_bug.cgi?id=1544393
// https://hg.mozilla.org/mozilla-central/rev/5a69d75cf9b1
lockPref("remote.enabled", false);
lockPref("remote.force-local", true);
// -------------------------------------
// Pref : Disable login manager storage
// https://bugzilla.mozilla.org/show_bug.cgi?id=1602631
// https://hg.mozilla.org/mozilla-central/rev/860cbb7db3c8
lockPref("signon.storeSignons", false);
// -------------------------------------
// FF74+
// -------------------------------------