There are often trade-offs and conflicts between security vs privacy vs anti-tracking
and these need to be balanced against functionality & convenience & breakage
Some site breakage and unintended consequences will happen. Everyone's experience will differ
e.g. some user data is erased on exit (section 2800), change this to suit your needs
While not 100% definitive, search for "[SETUP" tags
Some tag info
[SETUP-SECURITY] it's one item, read it
[SETUP-WEB] can cause some websites to break
[SETUP-CHROME] changes how Firefox itself behaves (i.e. not directly website related)
Use the arkenfox release that matches your Firefox version
DON'T wait for arkenfox to update Firefox, nothing major changes these days
Each release
Assistant
User
i set in browser about:preferences#privacy "Don’t enable HTTPS-Only Mode" - setting worked before browser restarted.
Assistant
User
i set exception for HTTPS-Only Mode for specific web site, but setting worked before browser restarted
Assistant
run prefsCleaner to reset prefs made inactive, including deprecated (9999)
ESR
It is recommended to not use the updater, or you will get a later version which may cause issues.
So you should manually append your overrides (and keep a copy), and manually update when you
change ESR releases (arkenfox is already past that release)
If you decide to keep updating, then the onus is on you - also see section 9999
about:home=Firefox Home (default, see 0105), custom URL, about:blank
[SETTING] Home>New Windows and Tabs>Homepage and new windows **/
user_pref("browser.startup.homepage", "about:blank");
/ 0104: set NEWTAB page
true=Firefox Home (default, see 0105), false=blank page
[SETTING] Home>New Windows and Tabs>New tabs **/
user_pref("browser.newtabpage.enabled", false);
/ 0105: disable sponsored content on Firefox Home (Activity Stream)
/*** [SECTION 0400]: SAFE BROWSING (SB)
SB has taken many steps to preserve privacy. If required, a full url is never sent
to Google, only a part-hash of the prefix, hidden with noise of other real part-hashes.
Firefox takes measures such as stripping out identifying parameters and since SBv4 (FF57+)
doesn't even use cookies. (#Turn on browser.safebrowsing.debug to monitor this activity)
To verify the safety of certain executable files, Firefox may submit some information about the
file, including the name, origin, size and a cryptographic hash of the contents, to the Google
Safe Browsing service which helps Firefox determine whether or not the file should be blocked
[SETUP-SECURITY] If you do not understand this, or you want this protection, then override this **/
user_pref("browser.safebrowsing.downloads.remote.enabled", false);
// user_pref("browser.safebrowsing.downloads.remote.url", ""); // Defense-in-depth
/ 0404: disable SB checks for unwanted software
[SETTING] Privacy & Security>Security>... "Warn you about unwanted and uncommon software" **/
// user_pref("browser.safebrowsing.downloads.remote.block_potentially_unwanted", false);
// user_pref("browser.safebrowsing.downloads.remote.block_uncommon", false);
/ 0405: disable "ignore this warning" on SB warnings [FF45+]
If clicked, it bypasses the block for that session. This is a means for admins to enforce SB
/*** [SECTION 0700]: DNS / DoH / PROXY / SOCKS **/
user_pref("_user.js.parrot", "0700 syntax error: the parrot's given up the ghost!");
/ 0702: set the proxy server to do any DNS lookups when using SOCKS
e.g. in Tor, this stops your local DNS server from knowing your Tor destination
/*** [SECTION 0800]: LOCATION BAR / SEARCH BAR / SUGGESTIONS / HISTORY / FORMS **/
user_pref("_user.js.parrot", "0800 syntax error: the parrot's ceased to be!");
/ 0801: disable location bar making speculative connections [FF56+]
Alternatively, you can exclude on a per-engine basis by unchecking them in Options>Search
[SETTING] Search>Address Bar>When using the address bar, suggest>Search engines **/
// user_pref("browser.urlbar.suggest.engines", false);
/ 0820: disable coloring of visited links
[SETUP-HARDEN] Bulk rapid history sniffing was mitigated in 2010 [1][2]. Slower and more expensive
redraw timing attacks were largely mitigated in FF77+ [3]. Using RFP (4501) further hampers timing
attacks. Don't forget clearing history on exit (2811). However, social engineering [2#limits][4][5]
and advanced targeted timing attacks could still produce usable results
[SETTING] Search>Default Search Engine>Choose a different default search engine for Private Windows only ***/
user_pref("browser.search.separatePrivateDefault", true); // [FF70+]
user_pref("browser.search.separatePrivateDefault.ui.enabled", true); // [FF71+]
/*** [SECTION 1000]: DISK AVOIDANCE **/
user_pref("_user.js.parrot", "1000 syntax error: the parrot's gone to meet 'is maker!");
/ 1001: disable disk cache
[NOTE] We also clear cache on exit (2811)
[SETUP-CHROME] If you think disk cache helps perf, then feel free to override this **/
user_pref("browser.cache.disk.enable", false);
/ 1002: disable media cache from writing to disk in Private Browsing
[NOTE] MSE (Media Source Extensions) are already stored in-memory in PB **/
user_pref("browser.privatebrowsing.forceMediaMemoryCache", true); // [FF75+]
user_pref("media.memory_cache_max_size", 65536);
/ 1003: disable storing extra session data [SETUP-CHROME]
define on which sites to save extra session data such as form content, cookies and POST data
0=everywhere, 1=unencrypted sites, 2=nowhere **/
user_pref("browser.sessionstore.privacy_level", 2);
/ 1005: disable automatic Firefox start and session restore after reboot [FF62+] [WINDOWS]
0=send full URI (default), 1=scheme+host+port+path, 2=scheme+host+port ***/
user_pref("network.http.referer.XOriginTrimmingPolicy", 2);
/*** [SECTION 1700]: CONTAINERS **/
user_pref("_user.js.parrot", "1700 syntax error: the parrot's bit the dust!");
/ 1701: enable Container Tabs and its UI setting [FF50+]
[NOTE] The menu is always shown on long press and right click
[SETTING] General>Tabs>Enable Container Tabs>Settings>Select a container for each new tab **/
// user_pref("privacy.userContext.newTabContainerOnLeftClick.enabled", true);
/ 1703: set external links to open in site-specific containers [FF123+]
[SETUP-WEB] Depending on your container extension(s) and their settings
true=Firefox will not choose a container (so your extension can)
false=Firefox will choose the container/no-container (default)
/*** [SECTION 2000]: PLUGINS / MEDIA / WEBRTC **/
user_pref("_user.js.parrot", "2000 syntax error: the parrot's snuffed it!");
/ 2002: force WebRTC inside the proxy [FF70+] **/
user_pref("media.peerconnection.ice.proxy_only_if_behind_proxy", true);
/ 2003: force a single network interface for ICE candidates generation [FF42+]
When using a system-wide proxy, it uses the proxy interface
[2] https://wiki.mozilla.org/Media/WebRTC/Privacy **/
user_pref("media.peerconnection.ice.default_address_only", true);
/ 2004: force exclusion of private IPs from ICE candidates [FF51+]
[SETUP-HARDEN] This will protect your private IP even in TRUSTED scenarios after you
grant device access, but often results in breakage on video-conferencing platforms **/
// user_pref("media.peerconnection.ice.no_host", true);
/ 2020: disable GMP (Gecko Media Plugins)
/*** [SECTION 2400]: DOM (DOCUMENT OBJECT MODEL) **/
user_pref("_user.js.parrot", "2400 syntax error: the parrot's kicked the bucket!");
/ 2402: prevent scripts from moving and resizing open windows ***/
user_pref("dom.disable_window_move_resize", true);
/*** [SECTION 2600]: MISCELLANEOUS **/
user_pref("_user.js.parrot", "2600 syntax error: the parrot's run down the curtain!");
/ 2603: remove temp files opened from non-PB windows with an external application
[1] https://bugzilla.mozilla.org/buglist.cgi?bug_id=302433,1738574 **/
user_pref("browser.download.start_downloads_in_tmp_dir", true); // [FF102+]
user_pref("browser.helperApps.deleteTempFileOnExit", true);
/ 2606: disable UITour backend so there is no chance that a remote page can use it **/
user_pref("browser.uitour.enabled", false);
// user_pref("browser.uitour.url", ""); // Defense-in-depth
/ 2608: reset remote debugging to disabled
[SETTING] to add site exceptions: Ctrl+I>Permissions>Override Keyboard Shortcuts **/
// user_pref("permissions.default.shortcuts", 2);
/ 2616: remove special permissions for certain mozilla domains [FF35+]
[1] resource://app/defaults/permissions **/
user_pref("permissions.manager.defaultsUrl", "");
/ 2617: remove webchannel whitelist **/
user_pref("webchannel.allowObject.urlWhitelist", "");
/ 2619: use Punycode in Internationalized Domain Names to eliminate possible spoofing
[SETUP-WEB] Might be undesirable for non-latin alphabet users since legitimate IDN's are also punycoded
/** DOWNLOADS **/
/ 2651: enable user interaction for security by always asking where to download
[SETUP-CHROME] On Android this blocks longtapping and saving images
[SETTING] General>Downloads>Always ask you where to save files **/
user_pref("browser.download.useDownloadDir", false);
/ 2652: disable downloads panel opening on every download [FF96+] **/
user_pref("browser.download.alwaysOpenPanel", false);
/ 2653: disable adding downloads to the system's "recent documents" list **/
user_pref("browser.download.manager.addToRecentDocs", false);
/ 2654: enable user interaction for security by always asking how to handle new mimetypes [FF101+]
[SETTING] General>Files and Applications>What should Firefox do with other files ***/
user_pref("browser.download.always_ask_before_handling_new_types", true);
/*** [SECTION 2800]: SHUTDOWN & SANITIZING **/
user_pref("_user.js.parrot", "2800 syntax error: the parrot's bleedin' demised!");
/ 2810: enable Firefox to clear items on shutdown
[NOTE] In FF129+ clearing "siteSettings" on shutdown (2811), or manually via site data (2820) and
via history (2830), will no longer remove sanitize on shutdown "cookie and site data" site exceptions (2815)
[SETTING] Privacy & Security>History>Custom Settings>Clear history when Firefox closes | Settings ***/
user_pref("privacy.sanitize.sanitizeOnShutdown", true);
/** SANITIZE ON SHUTDOWN: IGNORES "ALLOW" SITE EXCEPTIONS | v2 migration is FF128+ **/
/ 2811: set/enforce what items to clear on shutdown (if 2810 is true) [SETUP-CHROME]
[NOTE] If "history" is true, downloads will also be cleared **/
user_pref("privacy.clearOnShutdown.cache", true); // [DEFAULT: true]
user_pref("privacy.clearOnShutdown_v2.cache", true); // [FF128+] [DEFAULT: true]
user_pref("privacy.clearOnShutdown.downloads", true); // [DEFAULT: true]
user_pref("privacy.clearOnShutdown.formdata", true); // [DEFAULT: true]
user_pref("privacy.clearOnShutdown.history", true); // [DEFAULT: true]
user_pref("privacy.clearOnShutdown_v2.historyFormDataAndDownloads", true); // [FF128+] [DEFAULT: true]
// user_pref("privacy.clearOnShutdown.siteSettings", false); // [DEFAULT: false]
// user_pref("privacy.clearOnShutdown_v2.siteSettings", false); // [FF128+] [DEFAULT: false]
/ 2812: set Session Restore to clear on shutdown (if 2810 is true) [FF34+]
[NOTE] Not needed if Session Restore is not used (0102) or it is already cleared with history (2811)
[NOTE] If true, this prevents resuming from crashes (also see 5008) ***/
// user_pref("privacy.clearOnShutdown.openWindows", true);
/** SANITIZE ON SHUTDOWN: RESPECTS "ALLOW" SITE EXCEPTIONS FF103+ | v2 migration is FF128+ **/
/ 2815: set "Cookies" and "Site Data" to clear on shutdown (if 2810 is true) [SETUP-CHROME]
[NOTE] Exceptions: A "cookie" permission also controls "offlineApps" (see note below). For cross-domain logins,
[NOTE] "sessions": Active Logins (has no site exceptions): refers to HTTP Basic Authentication [1], not logins via cookies
[WARNING] Be selective with what sites you "Allow", as they also disable partitioning (1767271)
[SETTING] to add site exceptions: Ctrl+I>Permissions>Cookies>Allow (when on the website in question)
[SETTING] to manage site exceptions: Options>Privacy & Security>Permissions>Settings
[1] https://en.wikipedia.org/wiki/Basic_access_authentication ***/
user_pref("privacy.clearOnShutdown.cookies", true); // Cookies
user_pref("privacy.clearOnShutdown.offlineApps", true); // Site Data
user_pref("privacy.clearOnShutdown.sessions", true); // Active Logins [DEFAULT: true]
user_pref("privacy.clearOnShutdown_v2.cookiesAndStorage", true); // Cookies, Site Data, Active Logins [FF128+]
/** SANITIZE SITE DATA: IGNORES "ALLOW" SITE EXCEPTIONS **/
/ 2820: set manual "Clear Data" items [SETUP-CHROME] [FF128+]
Firefox remembers your last choices. This will reset them when you start Firefox
[SETTING] Privacy & Security>Browser Privacy>Cookies and Site Data>Clear Data ***/
user_pref("privacy.clearSiteData.cache", true);
user_pref("privacy.clearSiteData.cookiesAndStorage", false); // keep false until it respects "allow" site exceptions
user_pref("privacy.clearSiteData.historyFormDataAndDownloads", true);
// user_pref("privacy.clearSiteData.siteSettings", false);
/** SANITIZE HISTORY: IGNORES "ALLOW" SITE EXCEPTIONS | clearHistory migration is FF128+ **/
/ 2830: set manual "Clear History" items, also via Ctrl-Shift-Del [SETUP-CHROME]
Firefox remembers your last choices. This will reset them when you start Firefox
[NOTE] Regardless of what you set "downloads" to, as soon as the dialog
for "Clear Recent History" is opened, it is synced to the same as "history"
In FF118+ FPP is on by default in private windows (4001) and in FF119+ is controlled
by ETP (2701). FPP will also use Remote Services in future to relax FPP protections
on a per site basis for compatibility (4004).
1826408 - restrict fonts to system (kBaseFonts + kLangPackFonts) (Windows, Mac, some Linux)
https://searchfox.org/mozilla-central/search?path=StandardFonts*.inc
1858181 - subtly randomize canvas per eTLD+1, per session and per window-mode (FF120+)
**/
user_pref("_user.js.parrot", "4000 syntax error: the parrot's bereft of life!");
/ 4001: enable FPP in PB mode [FF114+]
[NOTE] In FF119+, FPP for all modes (7016) is enabled with ETP Strict (2701) **/
// user_pref("privacy.fingerprintingProtection.pbmode", true); // [DEFAULT: true FF118+]
/ 4002: set global FPP overrides [FF114+]
uses "RFPTargets" [1] which despite the name these are not used by RFP
e.g. "+AllTargets,-CSSPrefersColorScheme,-JSDateTimeUTC" = all targets but allow prefers-color-scheme and do not change timezone
e.g. "-AllTargets,+CanvasRandomization,+JSDateTimeUTC" = no targets but do use FPP canvas and change timezone
[NOTE] Not supported by arkenfox. Either use RFP or FPP at defaults
[NOTE] Not supported by arkenfox. Either use RFP or FPP at defaults **/
// user_pref("privacy.fingerprintingProtection.granularOverrides", "");
/ 4004: disable remote FPP overrides [FF127+] ***/
// user_pref("privacy.fingerprintingProtection.remoteOverrides.enabled", false);
FF128+ Arkenfox by default uses FPP (automatically enabled with ETP Strict). For most people
this is all you need. To use RFP instead, add RFP (4501) to your overrides, and optionally
add letterboxing (4504), spoof_english (4506), and webgl (4520).
[WARNING] DO NOT USE extensions to alter RFP protected metrics
code
418986 - limit window.screen & CSS media queries (FF41)
1281949 - spoof screen orientation (FF50)
1360039 - spoof navigator.hardwareConcurrency as 2 (FF55)
FF56
1333651 - spoof User Agent & Navigator API
version: android version spoofed as ESR (FF119 or lower)
OS: JS spoofed as Windows 10, OS 10.15, Android 10, or Linux | HTTP Headers spoofed as Windows or Android
1369319 - disable device sensor API
1369357 - disable site specific zoom
1337161 - hide gamepads from content
1372072 - spoof network information API as "unknown" when dom.netinfo.enabled = true
1333641 - reduce fingerprinting in WebSpeech API
FF57
1369309 - spoof media statistics
1382499 - reduce screen co-ordinate fingerprinting in Touch API
1217290 & 1409677 - enable some fingerprinting resistance for WebGL
1354633 - limit MediaError.message to a whitelist
FF58+
1372073 - spoof/block fingerprinting in MediaDevices API (FF59)
Spoof: enumerate devices as one "Internal Camera" and one "Internal Microphone"
Block: suppresses the ondevicechange event
1039069 - warn when language prefs are not set to "en*" (FF59)
1222285 & 1433592 - spoof keyboard events and suppress keyboard modifier events (FF59)
Spoofing mimics the content language of the document. Currently it only supports en-US.
Modifier events suppressed are SHIFT and both ALT keys. Chrome is not affected.
1337157 - disable WebGL debug renderer info (FF60)
1459089 - disable OS locale in HTTP Accept-Language headers (ANDROID) (FF62)
1479239 - return "no-preference" with prefers-reduced-motion (FF63)
1363508 - spoof/suppress Pointer Events (FF64)
1492766 - spoof pointerEvent.pointerid (FF65)
1485266 - disable exposure of system colors to CSS or canvas (FF67)
1494034 - return "light" with prefers-color-scheme (FF67)
1564422 - spoof audioContext outputLatency (FF70)
1595823 - return audioContext sampleRate as 44100 (FF72)
1607316 - spoof pointer as coarse and hover as none (ANDROID) (FF74)
1621433 - randomize canvas (previously FF58+ returned an all-white canvas) (FF78)
1506364 - return "no-preference" with prefers-contrast (FF80)
1653987 - limit font visibility to bundled and "Base Fonts" (Windows, Mac, some Linux) (FF80)
1461454 - spoof smooth=true and powerEfficient=false for supported media in MediaCapabilities (FF82)
531915 - use fdlibm's sin, cos and tan in jsmath (FF93, ESR91.1)
1756280 - enforce navigator.pdfViewerEnabled as true and plugins/mimeTypes as hard-coded values (FF100-115)
1692609 - reduce JS timing precision to 16.67ms (previously FF55+ was 100ms) (FF102)
1422237 - return "srgb" with color-gamut (FF110)
1794628 - return "none" with inverted-colors (FF114)
1554751 - return devicePixelRatio as 2 (previously FF41+ was 1) (FF127)
1787790 - normalize system fonts (FF128)
1835987 - spoof timezone as Atlantic/Reykjavik (previously FF55+ was UTC) (FF128)
**/
user_pref("_user.js.parrot", "4500 syntax error: the parrot's popped 'is clogs");
/ 4501: enable RFP
[NOTE] pbmode applies if true and the original pref is false
[SETUP-WEB] RFP can cause some website breakage: mainly canvas, use a canvas site exception via the urlbar.
RFP also has a few side effects: mainly that timezone is GMT, and websites will prefer light theme **/
// user_pref("privacy.resistFingerprinting", true); // [FF41+]
// user_pref("privacy.resistFingerprinting.pbmode", true); // [FF114+]
/ 4502: set RFP new window size max rounded values [FF55+]
[SETUP-CHROME] sizes round down in hundreds: width to 200s and height to 100s, to fit your screen
[1] https://bugzilla.mozilla.org/1330882 **/
user_pref("privacy.window.maxInnerWidth", 1600);
user_pref("privacy.window.maxInnerHeight", 900);
/ 4503: disable mozAddonManager Web API [FF57+]
[NOTE] To allow extensions to work on AMO, you also need 2662
[NOTE] When changing from value 2, preferred languages ('intl.accept_languages') is not reset.
[SETUP-WEB] when enabled, sets 'en-US, en' for displaying pages and 'en-US' as locale.
[SETTING] General>Language>Choose your preferred language for displaying pages>Choose>Request English... **/
user_pref("privacy.spoof_english", 1);
/ 4510: disable using system colors
[SETTING] General>Language and Appearance>Fonts and Colors>Colors>Use system colors **/
user_pref("browser.display.use_system_colors", false); // [DEFAULT: false NON-WINDOWS]
/ 4512: enforce links targeting new windows to open in a new tab instead
1=most recent window or tab, 2=new window, 3=new tab
Stops malicious window sizes and some screen resolution leaks.
You can still right-click a link and open in a new window
[SETTING] General>Tabs>Open links in tabs instead of new windows
[NOTE] This does not clear any passwords already saved
[SETTING] Privacy & Security>Logins and Passwords>Ask to save logins and passwords for websites **/
// user_pref("signon.rememberSignons", false);
/ 5004: disable permissions manager from writing to disk [FF41+] [RESTART]
[NOTE] This means any permission changes are session only
[NOTE] This affects login/cert/key dbs. The effect is all credentials are session-only.
Saved logins and passwords are not available. Reset the pref and restart to return them **/
// user_pref("security.nocertdb", true);
/ 5006: disable favicons in history and bookmarks
[NOTE] Stored as data blobs in favicons.sqlite, these don't reveal anything that your
actual history (and bookmarks) already do. Your history is more detailed, so
control that instead; e.g. disable history, clear history on exit, use PB mode
[NOTE] favicons.sqlite is sanitized on Firefox close **/
// user_pref("browser.chrome.site_icons", false);
/ 5007: exclude "Undo Closed Tabs" in Session Restore **/
// user_pref("browser.sessionstore.max_tabs_undo", 0);
/ 5008: disable resuming session from crash
[SETTING] Search>Address Bar>When using the address bar, suggest **/
// user_pref("browser.urlbar.suggest.history", false);
// user_pref("browser.urlbar.suggest.bookmark", false);
// user_pref("browser.urlbar.suggest.openpage", false);
// user_pref("browser.urlbar.suggest.topsites", false); // [FF78+]
/ 5011: disable location bar dropdown
This value controls the total number of entries to appear in the location bar dropdown **/
// user_pref("browser.urlbar.maxRichResults", 0);
/ 5012: disable location bar autofill
[NOTE] We also clear history and downloads on exit (2811)
[SETTING] Privacy & Security>History>Custom Settings>Remember browsing and download history **/
// user_pref("places.history.enabled", false);
/ 5014: disable Windows jumplist [WINDOWS] **/
// user_pref("browser.taskbar.lists.enabled", false);
// user_pref("browser.taskbar.lists.frequent.enabled", false);
// user_pref("browser.taskbar.lists.recent.enabled", false);
// user_pref("browser.taskbar.lists.tasks.enabled", false);
/ 5016: discourage downloading to desktop
0=desktop, 1=downloads (default), 2=custom
[SETTING] To set your custom default "downloads": General>Downloads>Save files to **/
// user_pref("browser.download.folderList", 2);
/ 5017: disable Form Autofill
If .supportedCountries includes your region (browser.search.region) and .supported
is "detect" (default), then the UI will show. Stored data is not secure, uses JSON
[SETTING] Privacy & Security>Forms and Autofill>Autofill addresses
[1] https://wiki.mozilla.org/Firefox/Features/Form_Autofill **/
// user_pref("extensions.formautofill.addresses.enabled", false); // [FF55+]
// user_pref("extensions.formautofill.creditCards.enabled", false); // [FF56+]
/ 5018: limit events that can cause a pop-up **/
// user_pref("dom.popup_allowed_events", "click dblclick mousedown pointerdown");
/ 5019: disable page thumbnail collection **/
// user_pref("browser.pagethumbnails.capturing_disabled", true); // [HIDDEN PREF]
/ 5020: disable Windows native notifications and use app notications instead [FF111+] [WINDOWS] **/
// user_pref("alerts.useSystemBackend.windows.notificationserver.enabled", false);
/ 5021: disable location bar using search
Don't leak URL typos to a search engine, give an error message instead
[NOTE] This does not affect explicit user action such as using search buttons in the
dropdown, or using keyword search shortcuts you configure in options (e.g. "d" for DuckDuckGo) ***/
// user_pref("keyword.enabled", false);
/*** [SECTION 5500]: OPTIONAL HARDENING
Not recommended. Overriding these can cause breakage and performance issues,
they are mostly fingerprintable, and the threat model is practically nonexistent
**/
user_pref("_user.js.parrot", "5500 syntax error: this is an ex-parrot!");
/ 5501: disable MathML (Mathematical Markup Language) [FF51+]
0=always (default), 1=only if base domains match, 2=only if hosts match
[NOTE] Will cause breakage: older modems/routers and some sites e.g banks, vimeo, icloud, instagram **/
// user_pref("network.http.referer.XOriginPolicy", 2);
/ 5511: set DoH bootstrap address [FF89+]
Firefox uses the system DNS to initially resolve the IP address of your DoH server.
When set to a valid, working value that matches your "network.trr.uri" (0712) Firefox
won't use the system DNS. If the IP doesn't match then DoH won't work ***/
// user_pref("network.trr.bootstrapAddr", "10.0.0.1"); // [HIDDEN PREF]
[WHY] Spoofing can affect CSRF (Cross-Site Request Forgery) protections **/
user_pref("network.http.referer.spoofSource", false); // [DEFAULT: false]
/ 6004: enforce a security delay on some confirmation dialogs such as install, open/save
[WARNING] Replaced with network partitioning (FF85+) and TCP (2701), and enabling FPI
disables those. FPI is no longer maintained except at Tor Project for Tor Browser's config **/
user_pref("privacy.firstparty.isolate", false); // [DEFAULT: false]
/ 6009: enforce SmartBlock shims (about:compat) [FF81+]
/*** [SECTION 7000]: DON'T BOTHER **/
user_pref("_user.js.parrot", "7000 syntax error: the parrot's pushing up daisies!");
/ 7001: disable APIs
Location-Aware Browsing, Full Screen
[WHY] The API state is easily fingerprintable.
Geo is behind a prompt (7002). Full screen requires user interaction **/
// user_pref("geo.enabled", false);
// user_pref("full-screen-api.enabled", false);
/ 7002: set default permissions
[WHY] Defaults are fine. They can be overridden by a site-controlled Referrer Policy **/
// user_pref("network.http.referer.defaultPolicy", 2); // [DEFAULT: 2]
// user_pref("network.http.referer.defaultPolicy.pbmode", 2); // [DEFAULT: 2]
/ 7010: disable HTTP Alternative Services [FF37+]
[WHY] Already isolated with network partitioning (FF85+) **/
// user_pref("network.http.altsvc.enabled", false);
/ 7011: disable website control over browser right-click context menu
[WHY] Just use Shift-Right-Click **/
// user_pref("dom.event.contextmenu.enabled", false);
/ 7012: disable icon fonts (glyphs) and local fallback rendering
[WHY] Breakage, font fallback is equivalency, also RFP
[WHY] Fingerprintable. Breakage. Cut/copy/paste require user
interaction, and paste is limited to focused editable fields **/
// user_pref("dom.event.clipboardevents.enabled", false);
/ 7014: disable System Add-on updates
[WHY] It can compromise security. System addons ship with prefs, use those **/
// user_pref("extensions.systemAddon.update.enabled", false); // [FF62+]
// user_pref("extensions.systemAddon.update.url", ""); // [FF44+]
/ 7015: enable the DNT (Do Not Track) HTTP header
[WHY] DNT is enforced with Tracking Protection which is used in ETP Strict (2701) **/
// user_pref("privacy.donottrackheader.enabled", true);
/ 7016: customize ETP settings
[NOTE] FPP (fingerprintingProtection) is ignored when RFP (4501) is enabled
[WHY] Passive and active fingerprinting. Mostly redundant with Tracking Protection
in ETP Strict (2701) and sanitizing on close (2800s) ***/
// user_pref("privacy.globalprivacycontrol.enabled", true);
/*** [SECTION 8000]: DON'T BOTHER: FINGERPRINTING
[WHY] They are insufficient to help anti-fingerprinting and do more harm than good
[WARNING] DO NOT USE with RFP. RFP already covers these and they can interfere
**/
user_pref("_user.js.parrot", "8000 syntax error: the parrot's crossed the Jordan");
/ 8001: prefsCleaner: reset items useless for anti-fingerprinting ***/
// user_pref("browser.display.use_document_fonts", "");
// user_pref("browser.zoom.siteSpecific", "");
// user_pref("device.sensors.enabled", "");
// user_pref("dom.enable_performance", "");
// user_pref("dom.enable_resource_timing", "");
// user_pref("dom.gamepad.enabled", "");
// user_pref("dom.maxHardwareConcurrency", "");
// user_pref("dom.w3c_touch_events.enabled", "");
// user_pref("dom.webaudio.enabled", "");
// user_pref("font.system.whitelist", "");
// user_pref("general.appname.override", "");
// user_pref("general.appversion.override", "");
// user_pref("general.buildID.override", "");
// user_pref("general.oscpu.override", "");
// user_pref("general.platform.override", "");
// user_pref("general.useragent.override", "");
// user_pref("media.navigator.enabled", "");
// user_pref("media.ondevicechange.enabled", "");
// user_pref("media.video_stats.enabled", "");
// user_pref("media.webspeech.synth.enabled", "");
// user_pref("ui.use_standins_for_native_colors", "");
// user_pref("webgl.enable-debug-renderer-info", "");
/*** [SECTION 9000]: NON-PROJECT RELATED **/
user_pref("_user.js.parrot", "9000 syntax error: the parrot's cashed in 'is chips!");
/ 9001: disable welcome notices **/
user_pref("browser.startup.homepage_override.mstone", "ignore"); // [HIDDEN PREF]
/ 9002: disable General>Browsing>Recommend extensions/features as you browse [FF67+] **/
user_pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons", false);
user_pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features", false);
/ 9004: disable search terms [FF110+]
[SETTING] Search>Search Bar>Use the address bar for search and navigation>Show search terms instead of URL... ***/
user_pref("browser.urlbar.showSearchTerms.enabled", false);
/*** [SECTION 9999]: DEPRECATED / RENAMED **/
user_pref("_user.js.parrot", "9999 syntax error: the parrot's shuffled off 'is mortal coil!");
/ ESR115.x still uses all the following prefs
// [NOTE] replace the * with a slash in the line above to re-enable active ones
// FF116
// 4506: set RFP's font visibility level (1402) [FF94+]
// [-] https://bugzilla.mozilla.org/1838415
// user_pref("layout.css.font-visibility.resistFingerprinting", 1); // [DEFAULT: 1]
// FF117
// 1221: disable Windows Microsoft Family Safety cert [FF50+] [WINDOWS]
// 0=disable detecting Family Safety mode and importing the root
// 1=only attempt to detect Family Safety mode (don't import the root)
// 2=detect Family Safety mode and import the root
// [1] https://gitlab.torproject.org/tpo/applications/tor-browser/-/issues/21686
// [-] https://bugzilla.mozilla.org/1844908
user_pref("security.family_safety.mode", 0);
// 7018: disable service worker Web Notifications [FF44+]
// [WHY] Web Notifications are behind a prompt (7002)
// [1] https://blog.mozilla.org/en/products/firefox/block-notification-requests/
// [-] https://bugzilla.mozilla.org/1842457
// user_pref("dom.webnotifications.serviceworker.enabled", false);
// FF118
// 1402: limit font visibility (Windows, Mac, some Linux) [FF94+]
// Uses hardcoded lists with two parts: kBaseFonts + kLangPackFonts [1], bundled fonts are auto-allowed
// In normal windows: uses the first applicable: RFP over TP over Standard
// In Private Browsing windows: uses the most restrictive between normal and private
// 1=only base system fonts, 2=also fonts from optional language packs, 3=also user-installed fonts
// [1] https://searchfox.org/mozilla-central/search?path=StandardFonts*.inc
// [-] https://bugzilla.mozilla.org/1847599
// user_pref("layout.css.font-visibility.private", 1);
// user_pref("layout.css.font-visibility.standard", 1);
// user_pref("layout.css.font-visibility.trackingprotection", 1);
// 2623: disable permissions delegation [FF73+]
// Currently applies to cross-origin geolocation, camera, mic and screen-sharing
// permissions, and fullscreen requests. Disabling delegation means any prompts
// for these will show/use their correct 3rd party origin
// [1] https://groups.google.com/forum/#!topic/mozilla.dev.platform/BdFOMAuCGW8/discussion
// [-] https://bugzilla.mozilla.org/1697151
// user_pref("permissions.delegation.enabled", false);
// FF119
// 0211: use en-US locale regardless of the system or region locale
// [SETUP-WEB] May break some input methods e.g xim/ibus for CJK languages [1]
// [1] https://bugzilla.mozilla.org/buglist.cgi?bug_id=867501,1629630
// [-] https://bugzilla.mozilla.org/1846224
// user_pref("javascript.use_us_english_locale", true); // [HIDDEN PREF]
// 0711: disable skipping DoH when parental controls are enabled [FF70+]
// [-] https://bugzilla.mozilla.org/1586941
user_pref("network.dns.skipTRR-when-parental-control-enabled", false);
// FF123
// 0334: disable PingCentre telemetry (used in several System Add-ons) [FF57+]
// Defense-in-depth: currently covered by 0331
// [-] https://bugzilla.mozilla.org/1868988
user_pref("browser.ping-centre.telemetry", false);
// FF126
// 9003: disable What's New toolbar icon [FF69+]
// [-] https://bugzilla.mozilla.org/1724300
user_pref("browser.messaging-system.whatsNewPanel.enabled", false);
// FF127
// 2630: disable content analysis by DLP (Data Loss Prevention) agents - replaced by default_result
// [-] https://bugzilla.mozilla.org/1880314
user_pref("browser.contentanalysis.default_allow", false);
// 4511: enforce non-native widget theme
// Security: removes/reduces system API calls, e.g. win32k API [1]
// Fingerprinting: provides a uniform look and feel across platforms [2]
// [1] https://bugzilla.mozilla.org/1381938
// [2] https://bugzilla.mozilla.org/1411425
// [-] https://bugzilla.mozilla.org/1848899
user_pref("widget.non-native-theme.enabled", true); // [DEFAULT: true]
// ***/
/* END: internal custom pref to test for syntax errors ***/
user_pref("_user.js.parrot", "SUCCESS: No no he's not dead, he's, he's restin'!");
// user_pref("layout.spellcheckDefault", 2); // 0=none, 1-multi-line, 2=multi-line & single-line
//Check your spelling as you type 0 is offj
user_pref("accessibility.typeaheadfind", false); // enable "Find As You Type"
user_pref("clipboard.autocopy", false); // disable autocopy default [LINUX]
user_pref("browser.tabs.loadBookmarksInTabs", true); // open bookmarks in a new tab [FF57+]
user_pref("general.autoScroll", false); // middle-click enabling auto-scrolling [DEFAULT: false on Linux]
/* 0103: set HOME+NEWWINDOW page
about:home=Activity Stream (default, see 0105), custom URL, about:blank
[SETTING] Home>New Windows and Tabs>Homepage and new windows **/
user_pref("browser.startup.homepage", "about:home");
/ 0104: set NEWTAB page
true=Activity Stream (default, see 0105), false=blank page
[SETTING] Home>New Windows and Tabs>New tabs ***/
user_pref("browser.newtabpage.enabled", true);
/* 2810: enable Firefox to clear items on shutdown
[SETTING] Privacy & Security>History>Custom Settings>Clear history when Firefox closes | Settings ***/
user_pref("privacy.sanitize.sanitizeOnShutdown", false);
/* 1244: enable HTTPS-Only mode in all windows
When the top-level is HTTPS, insecure subresources are also upgraded (silent fail)
[SETTING] to add site exceptions: Padlock>HTTPS-Only mode>On (after "Continue to HTTP Site")
The arkenfox user.js you posted contains multiple preferences specifically aimed at clearing or resetting various browsing data when Firefox shuts down or is restarted, effectively "resetting settings" on browser reboot.
Relevant Sections & Prefs for Resetting Data After Browser Shutdown/Reboot:
[SECTION 2800]: SHUTDOWN & SANITIZING
These prefs control Firefox’s automatic clearing of private data upon shutdown (browser quit), which effectively resets certain browser state when the browser is closed and reopened.
privacy.sanitize.sanitizeOnShutdown = true (2801):
Enables Firefox to clear data on shutdown.
privacy.clearOnShutdown.* prefs (2811):
Control what data is cleared on shutdown:
privacy.clearOnShutdown.sessions = true (active logins like HTTP auth)
These prefs mean browsing history, cookies, cache, form data, downloads data, session data, and local storage will be wiped upon shutdown.
privacy.clearOnShutdown_v2.cookiesAndStorage = true
A newer combined pref for clearing cookies, site data, and active logins on shutdown.
privacy.clearOnShutdown.siteSettings (usually false):
Controls whether site permissions/settings are cleared on shutdown. Usually set to false unless you want to reset permissions too every time.
privacy.clearOnShutdown.openWindows = false (2812):
Whether to clear session restore (restore tabs after restart). If true, session restore data is cleared on shutdown.
privacy.sanitize.timeSpan = 0 (2840):
The time range Firefox clears, 0 = everything.
What is Actually Reset on Browser Reboot?
If the above are enabled and you close Firefox completely, on next launch:
Browsing history and downloads history are cleared
Cookies and site data are deleted
Cache (memory and disk) is cleared
Active login sessions (HTTP auth) are cleared
Form data and saved searches are cleared
Session restore data may or may not be cleared depending on settings
This leads the browser to essentially "forget" most traces of previous browsing sessions, effectively "resetting" those parts of settings and state.
Additional Notes:
Many of these clearing settings only apply on full shutdown, not just restart. If Firefox is still running or you simply open a new window, data is kept unless explicitly cleared.
Some preferences like browser.startup.page=3 (resume previous session) can conflict with sanitizing settings; if session restore data is cleared on shutdown, there will be no session to restore.
You can configure what exactly is wiped by modifying privacy.clearOnShutdown.* prefs to suit your needs.
The user.js includes many other preferences unrelated to reset-on-shutdown, e.g. telemetry disabling, fingerprinting resistance, HTTPS-only mode, etc.
Summary of key prefs that cause browser to reset/clear data on shutdown (thus appearing as reset on reboot):
Disabling or changing these prefs will reduce or stop resetting these settings/data after browser reboot.
If your question is:
"Which settings cause the browser to reset settings after browser reboot?"
Answer:
The settings in the [SECTION 2800] SHUTDOWN & SANITIZING section of the arkenfox user.js control what gets cleared/reset when Firefox closes. Enabling privacy.sanitize.sanitizeOnShutdown and setting the privacy.clearOnShutdown.* prefs to true cause Firefox to automatically clear data such as history, cache, cookies, site data, form data, downloads, and session info on shutdown, effectively resetting those things when you restart the browser.
If you want to prevent browser state from being reset on restart, you should:
Set privacy.sanitize.sanitizeOnShutdown to false
Or set individual privacy.clearOnShutdown.* prefs to false as needed.
How Firefox handles "don't enable HTTPS-Only Mode" in about:preferences (UI setting):
When you turn off HTTPS-Only Mode via the UI in about:preferences → Privacy & Security, Firefox writes its updated value to prefs.js in the user profile.
However, settings in user.js always override those in prefs.js on every browser startup.
What you experience:
When you disable HTTPS-Only Mode via the UI, Firefox applies the change immediately during that session — so the setting "works" while Firefox is running.
But at browser restart, Firefox loads and applies user.js prefs, which in your case forcibly sets dom.security.https_only_mode back to true, overriding your UI change.
How to fix / change this behavior?
Disable or comment out the forcing pref in the user.js
The arkenfox project recommends using a user-overrides.js file for your personal preferences that you want to keep across restarts, without altering the main user.js.
Make a user-overrides.js in the same profile folder, and add this line:
js
user_pref("dom.security.https_only_mode", false);
This will override the user.js pref after it’s applied.
Remove user.js entirely if you want full control from Firefox UI
If you want Firefox preferences fully controlled from UI and elsewhere, avoid having a user.js overriding prefs.
Quick summary:
Your user.js forces https_only_mode = true on every startup.
So your UI change to disable HTTPS-Only Mode is overridden each restart.
Change or override that pref in user.js or user-overrides.js to stop that.
If you want, here’s a minimal example of a user-overrides.js for disabling HTTPS-Only Mode when using arkenfox user.js:
js
// Override to disable HTTPS-Only Mode because it was forced on by user.js
user_pref("dom.security.https_only_mode", false);
Place this file in your Firefox profile folder, and your overrides will apply after the user.js file.
How to check if user.js is forcing a pref
Open about:config
Search for dom.security.https_only_mode
If it’s bold or italic, means it's forced by user.js
Also look for warning at the top about prefs overridden by user.js.
Summary
The arkenfox user.js forces HTTPS-Only Mode on by default.
The UI toggle won't stick after restart with the user.js active.
To make it stick, override or disable that user.js preference.
Let me know if you want help customizing the file or creating an override!
When you set an exception for HTTPS-Only Mode for a specific website, Firefox stores this exception as a site permission or preference in your profile.
Why does the exception work during the session but gets lost after restart?
This same principle applies here:
The arkenfox user.js is designed for maximum privacy and security and clears or resets a lot of state on shutdown based on its privacy.clearOnShutdown.* settings.
Crucially, the arkaenfox user.js has these sanitize-on-shutdown prefs enabled (usually set to true):
js
user_pref("privacy.sanitize.sanitizeOnShutdown", true); // enables data clearance at shutdown
user_pref("privacy.clearOnShutdown.siteSettings", false); // usually false, but see below
user_pref("privacy.clearOnShutdown.cookies", true);
user_pref("privacy.clearOnShutdown.offlineApps", true);
According to your posted user.js, privacy.clearOnShutdown.siteSettings is set false by default in the arkenfox, meaning site permissions should not be cleared on shutdown by default.
Why exceptions get lost anyway?
There are additional factors:
Exceptions for HTTPS-Only Mode are saved under site permissions ("siteSettings") — often stored in permissions.sqlite and/or prefs related to site-specific permissions.
If any of these are cleared on shutdown, exceptions will be lost.
Some privacy/tweaking extensions or configurations might clear or reset site permissions on shutdown.
Some version mismatches or Firefox internal changes might have bugs or changes in how exceptions are preserved.