Compare commits

..

59 commits
6.1 ... master

Author SHA1 Message Date
fxbrit
ba238a9ca6 revisit middle mouse click behavior
* deprecate middlemouse.contentLoadURL since its default
* add browser.tabs.searchclipboardfor.middleclick to prevent clipboard leaks to search engines by mistake
2023-07-22 15:47:05 +02:00
fxbrit
a323021277 browser.translation.engine is a dead pref
https://bugzilla.mozilla.org/show_bug.cgi?id=1844125
2023-07-22 13:20:40 +02:00
fxbrit
2c561ca85d close #262 2023-07-08 19:04:02 +02:00
Andrei Shevchuk
c2005dad13 Do NOT set en-US language in SearXNG query params 2023-03-28 21:08:12 +00:00
fxbrit
1829a66295 Document recent changes, remove pref that is now default 2023-03-20 12:03:49 +01:00
stanzabird
e97fcae43f updated app.support.baseURL to reflect the new support url's so we can ditch the remap-links patch. 2023-03-15 13:45:28 +00:00
ebec9c7db2 Add "logging" section and disable browser.dom.window.dump.enabled and devtools.console.stdout.chrome 2023-02-18 21:19:25 +00:00
fxbrit
6fe09c63cb remove 'dom.popup_allowed_events' 2023-01-27 01:22:58 +00:00
fxbrit
197c45a312 get rid of 'browser.startup.blankWindow' 2023-01-27 01:16:16 +00:00
fxbrit
e417584a74 allow thumbnail capturing for NTP and tab cycling 2023-01-27 00:37:54 +00:00
fxbrit
338a7974ac rename searx instance to 'SearXNG - searx.be', close #237 2023-01-25 00:45:39 +01:00
fxbrit
71a20c6fff update changelog 2023-01-02 18:21:59 +01:00
fxbrit
b0d277a77b remove media.peerconnection.ice.no_host, improve descriptions 2023-01-02 18:18:45 +01:00
stanzabird
240e184b78 Update .gitlab-ci.yml file 2022-12-27 22:57:41 +00:00
fxbrit
424560ba70 change Startpage query string, close #232 2022-12-15 12:18:21 +01:00
fxbrit
798db65512 update the changelog 2022-12-02 17:12:21 +01:00
fxbrit
b3ec6d2ec3 trim some prefs we don't need anymore 2022-12-02 17:07:27 +01:00
Nikita Karamov
c5f0ea92ef Re-enable navigator.sendBeacon
Closes https://gitlab.com/librewolf-community/settings/-/issues/229
2022-11-28 14:42:44 +01:00
heapifyman
486637e9df fix typo in issue template
closes librewolf-community/settings#225
2022-11-12 15:39:17 +01:00
9395f5c0e0
remove browser.tabs.firefox=false
This is now handled by `firefox-view.patch` in the source repo
2022-10-23 11:12:16 +02:00
fxbrit
eb51b4785e remove warning 2022-10-20 17:27:35 +02:00
fxbrit
441d1f91e5 revert previous commit and fix actual syntax error 2022-10-20 17:27:20 +02:00
fxbrit
12212ff54a hotfix to avoid syntax error 2022-10-20 17:25:46 +02:00
fxbrit
97c527ac0b hide firefox view for now 2022-10-20 13:15:55 +02:00
fxbrit
7211e954b8 deprecate browser.ssl_override_behavior 2022-10-10 10:41:21 +02:00
fxbrit
33e1ec1cb9 remove most lockPref, trim devtools prefs 2022-10-08 16:34:42 +02:00
fxbrit
1bdfd333e3 change autoplay policy, allow svg opentype fonts 2022-10-05 11:17:56 +02:00
fxbrit
2f9f56d8ff minimize number of prefs, fix accessibility issues 2022-10-05 10:40:49 +02:00
fxbrit
4445fa8ee9 add comments 2022-09-21 12:05:07 +02:00
fxbrit
ed9334d258 enable APS 2022-09-21 11:59:15 +02:00
fxbrit
49a705f835 revisit formautofill, remove some defaults 2022-08-24 01:33:27 +02:00
fxbrit
381cbed42c prevent usage of geoclue location service 2022-08-07 17:41:03 +02:00
fxbrit
02212c3f44 cleanup description 2022-07-25 11:14:15 +02:00
fxbrit
249041a8e7 unlock fixup 2022-07-18 00:25:21 +02:00
fxbrit
b7cfe5831b bring back fixup 2022-07-18 00:02:34 +02:00
fxbrit
0d631d6872 update changelog 2022-07-09 15:28:09 +02:00
fxbrit
514b44fe32 close #197 2022-07-09 15:27:02 +02:00
fxbrit
d351495480 stop disabling IPv6, close #96 2022-07-09 15:24:26 +02:00
fxbrit
e505ddbf02 deprecate cookie lifetime policy, close #199 2022-07-09 15:21:45 +02:00
ohfp
c983fcc8be add services.settings.server pref 2022-07-01 17:01:21 +02:00
ohfp
6e2e56e079 Merge branch 'v102' 2022-07-01 16:52:10 +02:00
fxbrit
bc16f4f141 remove a bunch of defaults, improve native stripping 2022-06-17 12:09:17 +02:00
ohfp
b10dcbdd84 Merge branch 'v101' 2022-06-01 12:28:43 +02:00
fxbrit
ef4a50f1f8 close #178 2022-06-01 11:40:40 +02:00
fxbrit
ee09849476 fix versioning 2022-05-22 12:53:12 +02:00
fxbrit
528b38cb34 remove session cookie prefs and fission prefs 2022-05-22 12:51:56 +02:00
fxbrit
c03021ef29 query stripping is now part of strict mode 2022-05-22 12:33:23 +02:00
fxbrit
9208d987d8 improve issue template 2022-05-04 14:42:42 +02:00
fxbrit
185bdd5da3 improve readme and issue template 2022-05-04 14:31:57 +02:00
fxbrit
1e26476251 add issue template; fix #145 close #31 2022-05-04 14:25:48 +02:00
fxbrit
08df5cd836 fix link in changelog, add commit history 2022-05-04 01:45:26 +02:00
fxbrit
eea09ca073 update settings to v6.4 2022-05-03 23:05:21 +00:00
ohfp
e84fc950bf re-tag 6.2.1 as 6.3 to avoid confusion with diverging ver and tag 2022-04-29 11:25:40 +02:00
cd9b5514bb
bump version to 6.2.1 2022-04-28 20:53:30 +02:00
ed0fc3f72b Fix uBo Install URL 2022-04-28 18:23:36 +00:00
fxbrit
ac95f5195e bump to v6.2 2022-04-12 15:12:34 +02:00
Bert van der Weerd
1a84d38bab
Fix typo 2022-04-10 07:13:38 +02:00
fxbrit
bc71d27b8e allow offscreencanvas whitelist as JS cannot read it + fix 2022-04-09 11:54:34 +02:00
Marcin Pachur
438ad65b4f Update Ublock Origin to 1.42.4 2022-04-08 20:29:34 +00:00
6 changed files with 486 additions and 153 deletions

6
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,6 @@
stages:
- dummy
dummy-job:
stage: dummy
script:
- echo "Hello, world!"

View file

@ -0,0 +1,26 @@
### pre-requisites
<!--
if you ignore the pre-requisites and the template the issue might be closed.
issues that have the `provide info` label need user input or they will be quarantined after a week,
and closed after ten days.
suggestions are appreciated in the form of merge requests or alternatively well documented issues.
make sure you are in the right repository:
https://librewolf.net/docs/faq/#i-have-a-problem-where-do-i-open-a-new-issue
-->
- [ ] I've read and followed the [contribution guidelines](https://librewolf.net/docs/faq/#do-you-have-any-contribution-guidelines);
- [ ] I've reproduced the issue in a new LibreWolf profile;
- [ ] I've checked that the problem is not present in a stock Firefox profile;
### details
- browser version & OS:
- steps to reproduce:
- expected result:
- actual result:
- console errors and warnings:
- others:

View file

@ -8,11 +8,13 @@ we encourage users to find **their own setup** and to use our default configurat
- [website](https://librewolf.net/): read the docs. - [website](https://librewolf.net/): read the docs.
- [faq](https://librewolf.net/docs/faq/): for any question you might have, and to help you creating your own pref file. - [faq](https://librewolf.net/docs/faq/): for any question you might have, and to help you creating your own pref file.
- [all releases](https://gitlab.com/librewolf-community/browser). - [all releases](https://gitlab.com/librewolf-community/browser).
- [issue tracker](https://gitlab.com/librewolf-community/settings/-/issues). issues that have the `provide info` label need user input or they will be quarantined after a week, and closed after ten days. - [issue tracker](https://gitlab.com/librewolf-community/settings/-/issues).
- if you ignore the pre-requisites and the template the issues might be closed.
- issues that have the `provide info` label need user input or they will be quarantined after a week, and closed after ten days.
- find us on [gitter](https://gitter.im/librewolf-community/librewolf) / [matrix](https://matrix.to/#/#librewolf:matrix.org) / [reddit](https://www.reddit.com/r/LibreWolf/) / [lemmy](https://lemmy.ml/c/librewolf). - find us on [gitter](https://gitter.im/librewolf-community/librewolf) / [matrix](https://matrix.to/#/#librewolf:matrix.org) / [reddit](https://www.reddit.com/r/LibreWolf/) / [lemmy](https://lemmy.ml/c/librewolf).
## Notes and thanks ## Notes and thanks
- this repository benefits from the knowledge and research provided by [arkenfox](https://github.com/arkenfox), so special thanks to the project. - this repository benefits from the knowledge and research provided by [arkenfox](https://github.com/arkenfox), so special thanks to the project.
we do not use arkenfox's user.js but we try to keep up with it, and we also consider it a great resource for users who want to find their own setup. we do not use arkenfox's `user.js` but we try to keep up with it, and we also consider it a great resource for users who want to find their own setup.
- some of the older prefs in this project were taken from [pyllyukko](https://github.com/pyllyukko/user.js/) and many more were investigated on [bugzilla](https://bugzilla.mozilla.org/home); - many thanks to the firefox team and to the people working on [bugzilla](https://bugzilla.mozilla.org/home);
- thanks to the whole LibreWolf community and to all the contributors of this repo. - thanks to the whole LibreWolf community and to all the contributors of this repo.

File diff suppressed because one or more lines are too long

View file

@ -1,9 +1,357 @@
This changelog will be used from now on to document changes in a precise manner, with a list of changes for each setting version. This changelog will be used from now on to document changes in a precise manner, with a list of changes for each setting version.
Setting versions are documented using the pref `librewolf.cfg.version`, available in about:config. Setting versions are documented using the pref `librewolf.cfg.version`, available in about:config.
# 7.7
**base librewolf version**: 115.x
**References**:
- https://gitlab.com/librewolf-community/settings/-/issues/262
#### Added preferences
```
defaultPref("browser.urlbar.suggest.weather", false);
defaultPref("extensions.quarantinedDomains.enabled", false);
```
# 7.6
**base librewolf version**: 111.x - 114.x
**References**:
- the prefs added in the `LOGGING` section are off by default in the official Mozilla builds, so we are just acting like Firefox here;
#### Removed preferences
```
defaultPref("browser.contentblocking.report.monitor.enabled", false); // default
```
#### Changed preferences
```
defaultPref("app.support.baseURL", "https://support.librewolf.net/");
```
#### Added preferences
```
pref("browser.dom.window.dump.enabled", false);
pref("devtools.console.stdout.chrome", false);
```
# 7.5
**target commit**: from 71a20c6fff90e7fbcb216f1d644ca1b40b32b8e2 to 6fe09c63cbfb83ebfb6a17f5e624248f2501b97e
**base librewolf version**: 109.x and 110.x
**References**:
- thumbnails are only used in privileged code to populate New Tab Page and Ctrl+Tab previews.
- the startup blank window doesn't break anything and the perceived performance boost is irrelevant on modern hardware.
- reset popup events to default as it's mostly a non-issue.
#### Removed preferences
```
defaultPref("browser.pagethumbnails.capturing_disabled", true);
defaultPref("browser.startup.blankWindow", false);
defaultPref("dom.popup_allowed_events", "click dblclick mousedown pointerdown");
```
# 7.4
**target commit**: b0d277a77b36e3bcc5c0f7a1b0eca7a54a388d9d
**base librewolf version**: 108.x
**References**:
- win7/8.x don't need this pref thanks to Firefox's own implementation of mDNS.
#### Removed preferences
```
defaultPref("media.peerconnection.ice.no_host", true); // don't use any private IPs for ICE candidate
```
# 7.3
**target commit**: from 9395f5c0e061250acbcbcb523d2270d57136d411 to 240e184b785e4e46c09ca6881111f7c2d4d31a3f
**base librewolf version**: 107.x
**References**:
- mixed content is already covered by HTTPS-only-mode;
- [dom.disable_beforeunload is no longer necessary](https://github.com/arkenfox/user.js/issues/1575);
- [beacon API is fine](https://gitlab.com/librewolf-community/settings/-/issues/229);
- [Firefox Vew pref was removed in previous commit](https://gitlab.com/librewolf-community/settings/-/commit/9395f5c0e061250acbcbcb523d2270d57136d411), adding reference to the changelog;
#### Removed preferences
```
defaultPref("security.mixed_content.block_display_content", true); // block insecure passive content
defaultPref("dom.disable_beforeunload", true);
defaultPref("dom.disable_open_during_load", true); // default
defaultPref("browser.tabs.firefox-view", false);
pref("beacon.enabled", false);
```
# 7.2
**target commit**: from 7211e954b82da3cde5c5cf2d613fe1f84288e635 to eb51b4785e5b67fc388bcbd06a8324d5a54f5850
**base librewolf version**: 106.x
**References**:
- hide Firefox View til reviewed, see https://gitlab.com/librewolf-community/browser/source/-/issues/78;
- hotfix for syntax error;
#### Removed preferences
```
defaultPref("browser.ssl_override_behavior", 1); // deprecated
```
#### Added preferences
```
defaultPref("browser.tabs.firefox-view", false);
```
# 7.1
**target commit**: 33e1ec1cb97d1f16a696057fe9007ae8391def6b
**base librewolf version**: 106.x
**References**:
- change most `lockPref()` to `pref()` or `defaultPref()`, see https://gitlab.com/librewolf-community/settings/-/issues/204;
- offline autodetection is mature enough and it is used by some APIs;
- if someone wants to get the mozilla extension for USB debugging, that's fine.
#### Removed preferences
```
defaultPref("network.manage-offline-status", false);
defaultPref("devtools.remote.adb.extensionURL", "");
defaultPref("devtools.chrome.enabled", false); // default
```
# 7.0
**target commit**: from ed9334d258d20830deafe1a02b87b0cea678236d to 1bdfd333e31c3d119c0bf5506a56b2026ead3583
**base librewolf version**: 105.x
**References**:
- [enable APS](https://github.com/arkenfox/user.js/issues/1530#issuecomment-1242850653);
- trim unnecessary or default NTP prefs, then tidy existing ones;
- stick to default session restore interval for writes;
- remove a bunch of default prefs that have been that way for the longest;
- offer accessibility by default;
- remove hardcore svg security pref since CVEs are very old and irrelevant, see [this discussion](https://github.com/arkenfox/user.js/issues/1529);
- improve [autoplay behavior](https://gitlab.com/librewolf-community/settings/-/issues/213).
#### Added preferences
```
defaultPref("privacy.partition.always_partition_third_party_non_cookie_storage", true);
defaultPref("privacy.partition.always_partition_third_party_non_cookie_storage.exempt_sessionstorage", false);
```
#### Removed preferences
```
defaultPref("browser.newtab.preload", false);
lockPref("browser.newtabpage.activity-stream.feeds.discoverystreamfeed", false);
lockPref("browser.newtabpage.activity-stream.discoverystream.enabled", false);
lockPref("browser.newtabpage.activity-stream.feeds.snippets", false); // default
lockPref("browser.newtabpage.activity-stream.feeds.system.topstories", false);
defaultPref("browser.sessionstore.interval", 60000); // increase time between session saves
defaultPref("network.http.windows-sso.enabled", false); // default
defaultPref("privacy.partition.serviceWorkers", true); // default v105+
defaultPref("accessibility.force_disabled", 1); // block accessibility services
lockPref("toolkit.telemetry.shutdownPingSender.enabledFirstSession", false); // default
lockPref("toolkit.telemetry.reportingpolicy.firstRun", false); // default
defaultPref("network.http.referer.XOriginPolicy", 0); // default
lockPref("browser.safebrowsing.passwords.enabled", false); // default
lockPref("browser.safebrowsing.provider.google4.dataSharing.enabled", false); // default
defaultPref("gfx.font_rendering.opentype_svg.enabled", false); // disale svg opentype fonts
defaultPref("media.autoplay.blocking_policy", 2);
```
# 6.9
**target commit**: 49a705f835e1438372fbdf1a779fbc5846212a68
**base librewolf version**: 104.x
**References**:
- autofill prefs have been replaced in a migration, we now only keep the bare minimum;
#### Removed preferences
```
defaultPref("browser.fixup.alternate.enabled", false); // default v104+
defaultPref("browser.urlbar.dnsResolveSingleWordsAfterSearch", 0); // default v104+
defaultPref("extensions.formautofill.available", "off"); // deprecated
defaultPref("extensions.formautofill.creditCards.available", false); // deprecated
defaultPref("extensions.formautofill.heuristics.enabled", false);
```
# 6.8
**target commit**: 381cbed42c98d2376faf7e4ec449623bb99b0be1
**base librewolf version**: 103.x
**References**:
- [geoclue](https://github.com/arkenfox/user.js/issues/1504);
#### Added preferences
```
defaultPref("geo.provider.use_geoclue", false); // [LINUX]
```
#### Removed preferences
```
defaultPref("network.cookie.cookieBehavior", 5); // default
```
# 6.7
**target commit**: from e505ddbf0242aec1017a565a74ff9ff5aa458fe5 to 02212c3f44e7aa68b22c8febd9158580d7e4b74f
**base librewolf version**: 103.x
**References**:
- the cookie lifetime policy pref has been deprecated, see https://gitlab.com/librewolf-community/settings/-/issues/199;
- stop disabling IPv6, see https://gitlab.com/librewolf-community/settings/-/issues/96;
- discussion about domain guessing is available at https://gitlab.com/librewolf-community/settings/-/issues/197.
#### Removed preferences
```
defaultPref("network.cookie.lifetimePolicy", 2); // deprecated
defaultPref("network.dns.disableIPv6", true);
```
#### Unlocked preferences
```
defaultPref("browser.fixup.alternate.enabled", false); // default v104+
```
# 6.6
**target commit**: from bc16f4f14185e8791d819a69b7d798082ace67f8 to c983fcc8bea8fab31265bc345217b59ce5128de2
**base librewolf version**: 102.x
**References**:
- sha1 certificates: https://bugzilla.mozilla.org/1767489 and https://bugzilla.mozilla.org/1766687.
- trimming only applies to http websites so it's very minimal.
- crlite: https://bugzilla.mozilla.org/show_bug.cgi?id=1773371, we can stick to default 3 till v103, then the value will be changed to 2 which is the best possible if mozilla feels like it's ready usability wise.
- add more entries to the native query stripping list, to [get in line with brave](https://github.com/brave/brave-core/blob/master/browser/net/brave_site_hacks_network_delegate_helper.cc).
- `services.settings.server` can now be used as a pref, see: https://gitlab.com/librewolf-community/browser/source/-/merge_requests/37
#### Added preferences
```
defaultPref("services.settings.server", "https://%.invalid") // set the remote settings URL (REMOTE_SETTINGS_SERVER_URL in the code)
```
#### Removed preferences
```
defaultPref("security.pki.sha1_enforcement_level", 1); // default
defaultPref("browser.urlbar.trimURLs", false);
defaultPref("security.pki.crlite_mode", 3); // default
defaultPref("security.OCSP.enabled", 1); // default
```
#### Changed preferences
```
defaultPref("privacy.query_stripping.strip_list", "__hsfp __hssc __hstc __s _hsenc _openstat dclid fbclid gbraid gclid hsCtaTracking igshid mc_eid ml_subscriber ml_subscriber_hash msclkid oft_c oft_ck oft_d oft_id oft_ids oft_k oft_lk oft_sk oly_anon_id oly_enc_id rb_clickid s_cid twclid vero_conv vero_id wbraid wickedid yclid");
```
# 6.5
**target commit**: b10dcbdd84e63787c4f2f6d34d41724b437df5be
**base librewolf version**: 101.x
**References**:
- query stripping is now [part of strict mode](https://hg.mozilla.org/mozilla-central/rev/9d9425eb1ded).
- session cookie prefs are useless given that we sanitize on close, [more details at arkenfox](https://github.com/arkenfox/user.js/pull/1443/commits/3207478033fefc19e933dab4eef6445125341ec4).
- fission has been a default for the longest now.
#### Removed preferences
```
defaultPref("privacy.query_stripping.enabled", true);
defaultPref("network.cookie.thirdparty.sessionOnly", true);
defaultPref("network.cookie.thirdparty.nonsecureSessionOnly", true);
defaultPref("fission.autostart", true);
```
# 6.4
**target commit**: eea09ca07333dc166213fa9c873e4916d979e97f
**base librewolf version**: 100.x
**References**:
- hide Firefox Focus promo in private tabs.
- double checking revoked certificates with both CRL and OCSP allows to detect false positives and it is also [the default](https://hg.mozilla.org/mozilla-central/rev/a6ba7b4ee17).
- [clearOnShutdown prefs now respect exceptions](https://github.com/arkenfox/user.js/issues/1441) so we can tick all boxes in that UI as well.
#### Added preferences
```
lockPref("browser.promo.focus.enabled", false);
defaultPref("privacy.clearOnShutdown.offlineApps", true);
```
#### Changed preferences
```
defaultPref("security.pki.crlite_mode", 3); // prev 2
```
#### Removed preferences
```
defaultPref("privacy.clearOnShutdown.cookies", false);
```
# 6.3
**target commit**: e84fc950bfd7c3542cb974e9d545b9b8e18c010d
**base librewolf version**: 99.x
**References**:
- Fixes the uBlock Origin installation URL
# 6.2
**target commit**: ac95f5195ed82ca6bcec48acf9d1241e3c683b25
**base librewolf version**: 99.x
**References**:
- vpn pref was set to the wrong value by mistake.
- offscreencanvas cannot be read back using JS, plus it is being tracked upstream. see [this comment](https://github.com/arkenfox/user.js/issues/1418#issuecomment-1093390017), which solves doubts from 6.1 changelog.
#### Removed preferences
```
defaultPref("gfx.offscreencanvas.domain-enabled", false);
```
#### Changed preferences
```
lockPref("browser.vpn_promo.enabled", false);
```
# 6.1 # 6.1
**target commit**: **target commit**: 465257e5993893cd7896ef1533d37e245f206fb9
**base librewolf version**: 99.x **base librewolf version**: 99.x
@ -473,7 +821,7 @@ pref("browser.urlbar.quicksuggest.scenario", ""); // disable firefox suggests an
#### Commented preferences #### Commented preferences
``` ```
// pref("network.trr.mode", 2); // previously uncommented defaultPref with value 5 // pref("network.trr.mode", 2); // previously uncommented defaultPref with value 5
// pref("network.trr.uri", "https://dns.quad9.net/dns-query"); // previously uncommented defaultPref with empty value // pref("network.trr.uri", "https://dns.quad9.net/dns-query"); // previously uncommented defaultPref with empty value
``` ```
@ -644,5 +992,5 @@ lockPref("privacy.override_rfp_for_color_scheme", false);
**base librewolf version**: 89.x **base librewolf version**: 89.x
This is the initial release from which we start tagging and versioning settings. For previous changes see This is the initial release from which we start tagging and versioning settings. For previous changes see
[here](https://gitlab.com/librewolf-community/settings/-/blob/master/docs/changelog-legacy.md). [here](https://gitlab.com/librewolf-community/settings/-/blob/master/docs/changelog-legacy.md).

View file

@ -1,21 +1,21 @@
/** LIBREWOLF SETTINGS /** LIBREWOLF SETTINGS
* *
* please take the time to read and understand, but also to customize the settings to find your own setup. * take the time to read and understand, but also to customize the settings to find your own setup.
* the answers to the most common questions are at this link https://librewolf.net/docs/faq/ * the answers to the most common questions can be found at https://librewolf.net/docs/faq/.
* *
* WARNING: please make sure the first line of this file is empty. this is a known bug. * WARNING: make sure the first line of this file is empty. this is a known bug.
*/ */
defaultPref("librewolf.cfg.version", "6.1"); lockPref("librewolf.cfg.version", "7.7");
/** INDEX /** INDEX
* the file is organized in categories, and each one has a number of sections: * the file is organized in categories, and each one has a number of sections:
* *
* PRIVACY [ISOLATION, SANITIZING, CACHE AND STORAGE, HISTORY AND SESSION RESTORE, QUERY STRIPPING] * PRIVACY [ISOLATION, SANITIZING, CACHE AND STORAGE, HISTORY AND SESSION RESTORE, QUERY STRIPPING]
* NETWORKING [HTTPS, IPv6, REFERERS, WEBRTC, PROXY, DNS, PREFETCHING AND SPECULATIVE CONNECTIONS, OFFLINE] * NETWORKING [HTTPS, REFERERS, WEBRTC, PROXY, DNS, PREFETCHING AND SPECULATIVE CONNECTIONS]
* FINGERPRINTING [RFP, WEBGL, OFFSCREENCANVAS] * FINGERPRINTING [RFP, WEBGL]
* SECURITY [SITE ISOLATION, CERTIFICATES, TLS/SSL, PERMISSIONS, FONTS, SAFE BROWSING, OTHERS] * SECURITY [SITE ISOLATION, CERTIFICATES, TLS/SSL, PERMISSIONS, SAFE BROWSING, OTHERS]
* REGION [LOCATION, LANGUAGE] * REGION [LOCATION, LANGUAGE]
* BEHAVIOR [DRM, SEARCH AND URLBAR, DOWNLOADS, AUTOPLAY, POP-UPS AND WINDOWS, MOUSE] * BEHAVIOR [DRM, SEARCH AND URLBAR, DOWNLOADS, AUTOPLAY, POP-UPS AND WINDOWS, MOUSE]
* EXTENSIONS [USER INSTALLED, SYSTEM, EXTENSION FIREWALL] * EXTENSIONS [USER INSTALLED, SYSTEM, EXTENSION FIREWALL]
@ -36,25 +36,22 @@ defaultPref("librewolf.cfg.version", "6.1");
* 3. shims to avoid breakage caused by blocking lists * 3. shims to avoid breakage caused by blocking lists
* 4. stricter policies for xorigin referrers * 4. stricter policies for xorigin referrers
* 5. dFPI specific cookie cleaning mechanism * 5. dFPI specific cookie cleaning mechanism
* 6. query stripping
* *
* the desired category must be set with pref() otherwise it won't stick. * the desired category must be set with pref() otherwise it won't stick.
* the UI that allows to change mode manually is hidden. * the UI that allows to change mode manually is hidden.
*/ */
pref("browser.contentblocking.category", "strict"); pref("browser.contentblocking.category", "strict");
defaultPref("network.cookie.cookieBehavior", 5); // enforce dFPI // enable APS
defaultPref("privacy.partition.serviceWorkers", true); // isolate service workers defaultPref("privacy.partition.always_partition_third_party_non_cookie_storage", true);
defaultPref("privacy.partition.always_partition_third_party_non_cookie_storage.exempt_sessionstorage", false);
/** [SECTION] SANITIZING */ /** [SECTION] SANITIZING
defaultPref("network.cookie.lifetimePolicy", 2); // keep cookies until end of the session, then clear * all the cleaning prefs true by default except for siteSetting and offlineApps,
// make third party and http cookies session-only * which is what we want. users should set manual exceptions in the UI if there
defaultPref("network.cookie.thirdparty.sessionOnly", true); * are cookies they want to keep.
defaultPref("network.cookie.thirdparty.nonsecureSessionOnly", true);
/**
* this way of sanitizing cookies would override the exceptions set by the users and just delete everything,
* we disable it but cookies and site data are still cleared per session unless exceptions are set.
* all the cleaning prefs true by default except for siteSetting and offlineApps, which is what we want.
*/ */
defaultPref("privacy.clearOnShutdown.cookies", false); defaultPref("privacy.clearOnShutdown.offlineApps", true);
defaultPref("privacy.sanitize.sanitizeOnShutdown", true); defaultPref("privacy.sanitize.sanitizeOnShutdown", true);
defaultPref("privacy.sanitize.timeSpan", 0); defaultPref("privacy.sanitize.timeSpan", 0);
@ -63,9 +60,7 @@ defaultPref("browser.cache.disk.enable", false); // disable disk cache
/** prevent media cache from being written to disk in pb, but increase max cache size to avoid playback issues */ /** prevent media cache from being written to disk in pb, but increase max cache size to avoid playback issues */
defaultPref("browser.privatebrowsing.forceMediaMemoryCache", true); defaultPref("browser.privatebrowsing.forceMediaMemoryCache", true);
defaultPref("media.memory_cache_max_size", 65536); defaultPref("media.memory_cache_max_size", 65536);
// disable favicons in profile folder and page thumbnail capturing defaultPref("browser.shell.shortcutFavicons", false); // disable favicons in profile folder
defaultPref("browser.shell.shortcutFavicons", false);
defaultPref("browser.pagethumbnails.capturing_disabled", true);
defaultPref("browser.helperApps.deleteTempFileOnExit", true); // delete temporary files opened with external apps defaultPref("browser.helperApps.deleteTempFileOnExit", true); // delete temporary files opened with external apps
/** [SECTION] HISTORY AND SESSION RESTORE /** [SECTION] HISTORY AND SESSION RESTORE
@ -76,21 +71,26 @@ pref("privacy.history.custom", true);
pref("browser.privatebrowsing.autostart", false); pref("browser.privatebrowsing.autostart", false);
defaultPref("browser.formfill.enable", false); // disable form history defaultPref("browser.formfill.enable", false); // disable form history
defaultPref("browser.sessionstore.privacy_level", 2); // prevent websites from storing session data like cookies and forms defaultPref("browser.sessionstore.privacy_level", 2); // prevent websites from storing session data like cookies and forms
defaultPref("browser.sessionstore.interval", 60000); // increase time between session saves
/** [SECTION] QUERY STRIPPING /** [SECTION] QUERY STRIPPING
* enable query stripping and set the strip list. * currently we set the same query stripping list that brave uses:
* currently we use the same one that brave uses:
* https://github.com/brave/brave-core/blob/f337a47cf84211807035581a9f609853752a32fb/browser/net/brave_site_hacks_network_delegate_helper.cc#L29 * https://github.com/brave/brave-core/blob/f337a47cf84211807035581a9f609853752a32fb/browser/net/brave_site_hacks_network_delegate_helper.cc#L29
*/ */
defaultPref("privacy.query_stripping.enabled", true); defaultPref("privacy.query_stripping.strip_list", "__hsfp __hssc __hstc __s _hsenc _openstat dclid fbclid gbraid gclid hsCtaTracking igshid mc_eid ml_subscriber ml_subscriber_hash msclkid oft_c oft_ck oft_d oft_id oft_ids oft_k oft_lk oft_sk oly_anon_id oly_enc_id rb_clickid s_cid twclid vero_conv vero_id wbraid wickedid yclid");
defaultPref("privacy.query_stripping.strip_list", "__hsfp __hssc __hstc __s _hsenc _openstat dclid fbclid gbraid gclid hsCtaTracking igshid mc_eid ml_subscriber ml_subscriber_hash msclkid oly_anon_id oly_enc_id rb_clickid s_cid twclid vero_conv vero_id wbraid wickedid yclid");
/** /**
* librewolf specific pref that allows to include the query stripping lists in uBO by default. * librewolf specific pref that allows to include the query stripping lists in uBO by default.
* the asset file is fetched every 7 days. * the asset file is fetched every 7 days.
*/ */
defaultPref("librewolf.uBO.assetsBootstrapLocation", "https://gitlab.com/librewolf-community/browser/source/-/raw/main/assets/uBOAssets.json"); defaultPref("librewolf.uBO.assetsBootstrapLocation", "https://gitlab.com/librewolf-community/browser/source/-/raw/main/assets/uBOAssets.json");
/** [SECTION] LOGGING
* these prefs are off by default in the official Mozilla builds,
* so it only makes sense that we also disable them.
* See https://gitlab.com/librewolf-community/settings/-/issues/240
*/
pref("browser.dom.window.dump.enabled", false);
pref("devtools.console.stdout.chrome", false);
/** [CATEGORY] NETWORKING */ /** [CATEGORY] NETWORKING */
@ -98,28 +98,19 @@ defaultPref("librewolf.uBO.assetsBootstrapLocation", "https://gitlab.com/librewo
/** [SECTION] HTTPS */ /** [SECTION] HTTPS */
defaultPref("dom.security.https_only_mode", true); // only allow https in all windows, including private browsing defaultPref("dom.security.https_only_mode", true); // only allow https in all windows, including private browsing
defaultPref("network.auth.subresource-http-auth-allow", 1); // block HTTP authentication credential dialogs defaultPref("network.auth.subresource-http-auth-allow", 1); // block HTTP authentication credential dialogs
defaultPref("security.mixed_content.block_display_content", true); // block insecure passive content
/** [SECTION] IPv6
* privacy extension isn't the default for all linux distros, so we disable ipv6.
*/
defaultPref("network.dns.disableIPv6", true);
/** [SECTION] REFERERS /** [SECTION] REFERERS
* to enhance privacy but keep a certain level of usability we trim cross-origin * to enhance privacy but keep a certain level of usability we trim cross-origin
* referers, instead of completely avoid sending them. * referers to only send scheme, host and port, instead of completely avoid sending them.
* as a general rule, the behavior of referes which are not cross-origin should not * as a general rule, the behavior of referes which are not cross-origin should not
* be changed. * be changed.
*/ */
defaultPref("network.http.referer.XOriginPolicy", 0); // default, might be worth changing to 2 to stop sending them completely defaultPref("network.http.referer.XOriginTrimmingPolicy", 2);
defaultPref("network.http.referer.XOriginTrimmingPolicy", 2); // trim referer to only send scheme, host and port
/** [SECTION] WEBRTC /** [SECTION] WEBRTC
* there's no point in disabling webrtc as mDNS protects the private IP on linux, osx and win10+. * there is no point in disabling webrtc as mDNS protects the private IP on linux, osx and win10+.
* with the below preference we protect the value even in trusted environments and for win7/8 users, * the private IP address is only used in trusted environments, eg. allowed camera and mic access.
* although this will likely cause breakage.
*/ */
defaultPref("media.peerconnection.ice.no_host", true); // don't use any private IPs for ICE candidate
defaultPref("media.peerconnection.ice.default_address_only", true); // use a single interface for ICE candidates, the vpn one when a vpn is used defaultPref("media.peerconnection.ice.default_address_only", true); // use a single interface for ICE candidates, the vpn one when a vpn is used
/** [SECTION] PROXY */ /** [SECTION] PROXY */
@ -132,7 +123,7 @@ defaultPref("media.peerconnection.ice.proxy_only_if_behind_proxy", true); // for
defaultPref("network.trr.confirmationNS", "skip"); // skip undesired doh test connection defaultPref("network.trr.confirmationNS", "skip"); // skip undesired doh test connection
defaultPref("network.dns.disablePrefetch", true); // disable dns prefetching defaultPref("network.dns.disablePrefetch", true); // disable dns prefetching
/** /**
* librewolf doesn't use DoH, but it can be enabled with the following prefs: * librewolf does not use DoH, but it can be enabled with the following prefs:
* pref("network.trr.mode", 2); * pref("network.trr.mode", 2);
* pref("network.trr.uri", "https://dns.quad9.net/dns-query"); * pref("network.trr.uri", "https://dns.quad9.net/dns-query");
* *
@ -145,21 +136,14 @@ defaultPref("network.dns.disablePrefetch", true); // disable dns prefetching
*/ */
/** [SECTION] PREFETCHING AND SPECULATIVE CONNECTIONS /** [SECTION] PREFETCHING AND SPECULATIVE CONNECTIONS
* disable prefecthing for different things such as links, bookmarks and predictors. * disable prefecthing for different things such as links, bookmarks and predictions.
*/ */
lockPref("network.predictor.enabled", false); pref("network.predictor.enabled", false);
lockPref("network.prefetch-next", false); pref("network.prefetch-next", false);
lockPref("network.http.speculative-parallel-limit", 0); pref("network.http.speculative-parallel-limit", 0);
defaultPref("browser.places.speculativeConnect.enabled", false); defaultPref("browser.places.speculativeConnect.enabled", false);
// disable speculative connections and domain guessing from the urlbar // disable speculative connections and domain guessing from the urlbar
defaultPref("browser.urlbar.dnsResolveSingleWordsAfterSearch", 0);
defaultPref("browser.urlbar.speculativeConnect.enabled", false); defaultPref("browser.urlbar.speculativeConnect.enabled", false);
lockPref("browser.fixup.alternate.enabled", false);
/** [SECTION] OFFLINE
* let users set the browser as offline, without the browser trying to guess.
*/
defaultPref("network.manage-offline-status", false);
@ -172,8 +156,7 @@ defaultPref("network.manage-offline-status", false);
defaultPref("privacy.resistFingerprinting", true); defaultPref("privacy.resistFingerprinting", true);
// rfp related settings // rfp related settings
defaultPref("privacy.resistFingerprinting.block_mozAddonManager", true); // prevents rfp from breaking AMO defaultPref("privacy.resistFingerprinting.block_mozAddonManager", true); // prevents rfp from breaking AMO
defaultPref("browser.startup.blankWindow", false); // if set to true it breaks RFP windows resizing defaultPref("browser.display.use_system_colors", false); // default, except Win
defaultPref("browser.display.use_system_colors", false); // default but enforced due to RFP
/** /**
* increase the size of new RFP windows for better usability, while still using a rounded value. * increase the size of new RFP windows for better usability, while still using a rounded value.
* if the screen resolution is lower it will stretch to the biggest possible rounded value. * if the screen resolution is lower it will stretch to the biggest possible rounded value.
@ -186,28 +169,16 @@ defaultPref("privacy.resistFingerprinting.letterboxing", false);
/** [SECTION] WEBGL */ /** [SECTION] WEBGL */
defaultPref("webgl.disabled", true); defaultPref("webgl.disabled", true);
/** [SECTION] OFFSCREENCANVAS
* it will need a revisit in the near future, in case it causes breakage or
* if it has been tied to canvas api permission or if it is not allowed to
* exchange values through it. for now leave disabled just because.
*/
defaultPref("gfx.offscreencanvas.domain-enabled", false);
/** [CATEGORY] SECURITY */ /** [CATEGORY] SECURITY */
/** [SECTION] SITE ISOLATION
* https://wiki.mozilla.org/Project_Fission
* this has been rolled out and is now a default on most FF releases
*/
defaultPref("fission.autostart", true);
/** [SECTION] CERTIFICATES */ /** [SECTION] CERTIFICATES */
defaultPref("security.cert_pinning.enforcement_level", 2); // enable strict public key pinning, might cause issues with AVs defaultPref("security.cert_pinning.enforcement_level", 2); // enable strict public key pinning, might cause issues with AVs
defaultPref("security.pki.sha1_enforcement_level", 1); // disable sha-1 certificates
/** /**
* enable safe negotiation and show warning when it is not supported. might cause breakage. * enable safe negotiation and show warning when it is not supported. might cause breakage
* if the the server does not support RFC 5746, in tha case SSL_ERROR_UNSAFE_NEGOTIATION
* will be shown.
*/ */
defaultPref("security.ssl.require_safe_negotiation", true); defaultPref("security.ssl.require_safe_negotiation", true);
defaultPref("security.ssl.treat_unsafe_negotiation_as_broken", true); defaultPref("security.ssl.treat_unsafe_negotiation_as_broken", true);
@ -215,26 +186,20 @@ defaultPref("security.ssl.treat_unsafe_negotiation_as_broken", true);
* our strategy with revocation is to perform all possible checks with CRL, but when a cert * our strategy with revocation is to perform all possible checks with CRL, but when a cert
* cannot be checked with it we use OCSP stapled with hard-fail, to still keep privacy and * cannot be checked with it we use OCSP stapled with hard-fail, to still keep privacy and
* increase security. * increase security.
* switching to crlite mode 3 (v99+) would allow us to detect false positive with OCSP. * crlite is in mode 3 by default, which allows us to detect false positive with OCSP.
* in v103, when crlite is fully mature, it will switch to mode 2 and no longer double-check.
*/ */
defaultPref("security.remote_settings.crlite_filters.enabled", true); defaultPref("security.remote_settings.crlite_filters.enabled", true);
defaultPref("security.pki.crlite_mode", 2); // mode 2 means enforce CRL checks defaultPref("security.OCSP.require", true); // set to hard-fail, might cause SEC_ERROR_OCSP_SERVER_ERROR
defaultPref("security.OCSP.enabled", 1); // default
defaultPref("security.OCSP.require", true); // set to hard-fail
/** [SECTION] TLS/SSL */ /** [SECTION] TLS/SSL */
lockPref("security.tls.enable_0rtt_data", false); // disable 0 RTT to improve tls 1.3 security pref("security.tls.enable_0rtt_data", false); // disable 0 RTT to improve tls 1.3 security
pref("security.tls.version.enable-deprecated", false); // make TLS downgrades session only by enforcing it with pref() pref("security.tls.version.enable-deprecated", false); // make TLS downgrades session only by enforcing it with pref(), default
// show relevant and advanced issues on warnings and error screens defaultPref("browser.xul.error_pages.expert_bad_cert", true); // show relevant and advanced issues on warnings and error screens
defaultPref("browser.ssl_override_behavior", 1);
defaultPref("browser.xul.error_pages.expert_bad_cert", true);
/** [SECTION] PERMISSIONS */ /** [SECTION] PERMISSIONS */
lockPref("permissions.delegation.enabled", false); // force permission request to show real origin pref("permissions.delegation.enabled", false); // force permission request to show real origin
lockPref("permissions.manager.defaultsUrl", ""); // revoke special permissions for some mozilla domains pref("permissions.manager.defaultsUrl", ""); // revoke special permissions for some mozilla domains
/** [SECTION] FONTS */
defaultPref("gfx.font_rendering.opentype_svg.enabled", false); // disale svg opentype fonts
/** [SECTION] SAFE BROWSING /** [SECTION] SAFE BROWSING
* disable safe browsing, including the fetch of updates. reverting the 7 prefs below * disable safe browsing, including the fetch of updates. reverting the 7 prefs below
@ -248,18 +213,16 @@ defaultPref("browser.safebrowsing.provider.google4.updateURL", "");
defaultPref("browser.safebrowsing.provider.google.gethashURL", ""); defaultPref("browser.safebrowsing.provider.google.gethashURL", "");
defaultPref("browser.safebrowsing.provider.google.updateURL", ""); defaultPref("browser.safebrowsing.provider.google.updateURL", "");
/** /**
* disable safe browsing checks on downloads, both local and remote. the locked prefs * disable safe browsing checks on downloads, both local and remote. the resetting prefs
* control remote checks, while the first one is for local checks only. * control remote checks, while the first one is for local checks only.
*/ */
defaultPref("browser.safebrowsing.downloads.enabled", false); defaultPref("browser.safebrowsing.downloads.enabled", false);
lockPref("browser.safebrowsing.downloads.remote.enabled", false); pref("browser.safebrowsing.downloads.remote.enabled", false);
lockPref("browser.safebrowsing.downloads.remote.url", ""); pref("browser.safebrowsing.downloads.remote.block_potentially_unwanted", false);
lockPref("browser.safebrowsing.downloads.remote.block_potentially_unwanted", false); pref("browser.safebrowsing.downloads.remote.block_uncommon", false);
lockPref("browser.safebrowsing.downloads.remote.block_uncommon", false); // empty for defense in depth
// other safe browsing options, all default but enforce pref("browser.safebrowsing.downloads.remote.url", "");
lockPref("browser.safebrowsing.passwords.enabled", false); pref("browser.safebrowsing.provider.google4.dataSharingURL", "");
lockPref("browser.safebrowsing.provider.google4.dataSharing.enabled", false);
lockPref("browser.safebrowsing.provider.google4.dataSharingURL", "");
/** [SECTION] OTHERS */ /** [SECTION] OTHERS */
defaultPref("network.IDN_show_punycode", true); // use punycode in idn to prevent spoofing defaultPref("network.IDN_show_punycode", true); // use punycode in idn to prevent spoofing
@ -273,9 +236,10 @@ defaultPref("pdfjs.enableScripting", false); // disable js scripting in the buil
* replace google with mozilla as the default geolocation provide and prevent use of OS location services * replace google with mozilla as the default geolocation provide and prevent use of OS location services
*/ */
defaultPref("geo.provider.network.url", "https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%"); defaultPref("geo.provider.network.url", "https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%");
lockPref("geo.provider.ms-windows-location", false); // [WINDOWS] defaultPref("geo.provider.ms-windows-location", false); // [WINDOWS]
lockPref("geo.provider.use_corelocation", false); // [MAC] defaultPref("geo.provider.use_corelocation", false); // [MAC]
lockPref("geo.provider.use_gpsd", false); // [LINUX] defaultPref("geo.provider.use_gpsd", false); // [LINUX]
defaultPref("geo.provider.use_geoclue", false); // [LINUX]
/** [SECTION] LANGUAGE /** [SECTION] LANGUAGE
* show language as en-US for all users, regardless of their OS language and browser language. * show language as en-US for all users, regardless of their OS language and browser language.
@ -284,8 +248,8 @@ lockPref("geo.provider.use_gpsd", false); // [LINUX]
pref("javascript.use_us_english_locale", true); pref("javascript.use_us_english_locale", true);
pref("intl.accept_languages", "en-US, en"); pref("intl.accept_languages", "en-US, en");
// disable region specific updates from mozilla // disable region specific updates from mozilla
lockPref("browser.region.network.url", ""); pref("browser.region.network.url", "");
lockPref("browser.region.update.enabled", false); pref("browser.region.update.enabled", false);
@ -299,19 +263,18 @@ defaultPref("media.gmp-provider.enabled", false);
defaultPref("media.gmp-gmpopenh264.enabled", false); defaultPref("media.gmp-gmpopenh264.enabled", false);
/** [SECTION] SEARCH AND URLBAR /** [SECTION] SEARCH AND URLBAR
* disable search suggestion by default and do not update opensearch engines. urls should also be * disable search suggestion and do not update opensearch engines.
* displayed in full instead of trimming them.
*/ */
defaultPref("browser.urlbar.suggest.searches", false); defaultPref("browser.urlbar.suggest.searches", false);
defaultPref("browser.search.suggest.enabled", false); defaultPref("browser.search.suggest.enabled", false);
defaultPref("browser.search.update", false); defaultPref("browser.search.update", false);
defaultPref("browser.urlbar.trimURLs", false);
/** /**
* the pref disables the whole feature and hide it from the ui * the pref disables the whole feature and hide it from the ui
* (as noted in https://bugzilla.mozilla.org/show_bug.cgi?id=1755057). * (as noted in https://bugzilla.mozilla.org/show_bug.cgi?id=1755057).
* this also includes the best match feature, as it is part of firefox suggest. * this also includes the best match feature, as it is part of firefox suggest.
*/ */
pref("browser.urlbar.quicksuggest.enabled", false); pref("browser.urlbar.quicksuggest.enabled", false);
defaultPref("browser.urlbar.suggest.weather", false); // disable weather suggestions in urlbar once they are no longer behind feature gate
/** [SECTION] DOWNLOADS /** [SECTION] DOWNLOADS
* user interaction should always be required for downloads, as a way to enhance security by asking * user interaction should always be required for downloads, as a way to enhance security by asking
@ -323,19 +286,13 @@ defaultPref("browser.download.manager.addToRecentDocs", false); // do not add do
defaultPref("browser.download.alwaysOpenPanel", false); // do not expand toolbar menu for every download, we already have enough interaction defaultPref("browser.download.alwaysOpenPanel", false); // do not expand toolbar menu for every download, we already have enough interaction
/** [SECTION] AUTOPLAY /** [SECTION] AUTOPLAY
* block autoplay unless element is clicked, and apply the policy to all elements * block autoplay unless element is right-clicked. this means background videos, videos in a different tab,
* including muted ones. * or media opened while other media is played will not start automatically.
* thumbnails will not autoplay unless hovered. exceptions can be set from the UI.
*/ */
defaultPref("media.autoplay.blocking_policy", 2);
defaultPref("media.autoplay.default", 5); defaultPref("media.autoplay.default", 5);
/** [SECTION] POP-UPS AND WINDOWS /** [SECTION] POP-UPS AND WINDOWS
* disable annoyin pop-ups and limit events that can trigger them.
*/
defaultPref("dom.disable_beforeunload", true); // disable "confirm you want to leave" pop-ups
defaultPref("dom.disable_open_during_load", true); // block pop-ups windows
defaultPref("dom.popup_allowed_events", "click dblclick mousedown pointerdown");
/**
* prevent scripts from resizing existing windows and opening new ones, by forcing them into * prevent scripts from resizing existing windows and opening new ones, by forcing them into
* new tabs that can't be resized as well. * new tabs that can't be resized as well.
*/ */
@ -344,7 +301,7 @@ defaultPref("browser.link.open_newwindow", 3);
defaultPref("browser.link.open_newwindow.restriction", 0); defaultPref("browser.link.open_newwindow.restriction", 0);
/** [SECTION] MOUSE */ /** [SECTION] MOUSE */
defaultPref("middlemouse.contentLoadURL", false); // prevent mouse middle click from opening links defaultPref("browser.tabs.searchclipboardfor.middleclick", false); // prevent mouse middle click on new tab button to trigger searches or page loads
@ -358,6 +315,13 @@ defaultPref("middlemouse.contentLoadURL", false); // prevent mouse middle click
defaultPref("extensions.webextensions.restrictedDomains", ""); defaultPref("extensions.webextensions.restrictedDomains", "");
defaultPref("extensions.enabledScopes", 5); // hidden defaultPref("extensions.enabledScopes", 5); // hidden
defaultPref("extensions.postDownloadThirdPartyPrompt", false); defaultPref("extensions.postDownloadThirdPartyPrompt", false);
/**
* the pref disables quarantined domains.
* this is a security feature, we should remove it with v116 as there will be a UI to control this per-extension.
* unless we patch remote settings we rely on static dumps. this means even if we did not flip this pref it would
* not make a difference at the moment.
*/
defaultPref("extensions.quarantinedDomains.enabled", false);
/** [SECTION] SYSTEM /** [SECTION] SYSTEM
* built-in extension are not allowed to auto-update. additionally the reporter extension * built-in extension are not allowed to auto-update. additionally the reporter extension
@ -395,11 +359,8 @@ defaultPref("identity.fxaccounts.enabled", false);
*/ */
defaultPref("signon.rememberSignons", false); defaultPref("signon.rememberSignons", false);
defaultPref("signon.autofillForms", false); defaultPref("signon.autofillForms", false);
defaultPref("extensions.formautofill.available", "off");
defaultPref("extensions.formautofill.addresses.enabled", false); defaultPref("extensions.formautofill.addresses.enabled", false);
defaultPref("extensions.formautofill.creditCards.enabled", false); defaultPref("extensions.formautofill.creditCards.enabled", false);
defaultPref("extensions.formautofill.creditCards.available", false);
defaultPref("extensions.formautofill.heuristics.enabled", false);
defaultPref("signon.formlessCapture.enabled", false); defaultPref("signon.formlessCapture.enabled", false);
/** [SECTION] CONTAINERS /** [SECTION] CONTAINERS
@ -409,17 +370,14 @@ defaultPref("privacy.userContext.enabled", true);
defaultPref("privacy.userContext.ui.enabled", true); defaultPref("privacy.userContext.ui.enabled", true);
/** [SECTION] DEVTOOLS /** [SECTION] DEVTOOLS
* disable chrome and remote debugging. * disable remote debugging.
*/ */
defaultPref("devtools.chrome.enabled", false); pref("devtools.debugger.remote-enabled", false); // default, but subject to branding so keep it
defaultPref("devtools.debugger.remote-enabled", false);
defaultPref("devtools.remote.adb.extensionURL", "");
defaultPref("devtools.selfxss.count", 0); // required for devtools console to work defaultPref("devtools.selfxss.count", 0); // required for devtools console to work
/** [SECTION] OTHERS */ /** [SECTION] OTHERS */
lockPref("browser.translation.engine", ""); // remove translation engine pref("webchannel.allowObject.urlWhitelist", ""); // remove web channel whitelist
defaultPref("accessibility.force_disabled", 1); // block accessibility services defaultPref("services.settings.server", "https://%.invalid") // set the remote settings URL (REMOTE_SETTINGS_SERVER_URL in the code)
defaultPref("webchannel.allowObject.urlWhitelist", ""); // do not receive objects through webchannels
@ -428,7 +386,7 @@ defaultPref("webchannel.allowObject.urlWhitelist", ""); // do not receive object
/** [SECTION] BRANDING /** [SECTION] BRANDING
* set librewolf support and releases urls in the UI, so that users land in the proper places. * set librewolf support and releases urls in the UI, so that users land in the proper places.
*/ */
defaultPref("app.support.baseURL", "https://librewolf.net/docs/faq/#"); defaultPref("app.support.baseURL", "https://support.librewolf.net/");
defaultPref("browser.search.searchEnginesURL", "https://librewolf.net/docs/faq/#how-do-i-add-a-search-engine"); defaultPref("browser.search.searchEnginesURL", "https://librewolf.net/docs/faq/#how-do-i-add-a-search-engine");
defaultPref("browser.geolocation.warning.infoURL", "https://librewolf.net/docs/faq/#how-do-i-enable-location-aware-browsing"); defaultPref("browser.geolocation.warning.infoURL", "https://librewolf.net/docs/faq/#how-do-i-enable-location-aware-browsing");
defaultPref("app.feedback.baseURL", "https://librewolf.net/#questions"); defaultPref("app.feedback.baseURL", "https://librewolf.net/#questions");
@ -451,34 +409,32 @@ lockPref("browser.uitour.url", "");
defaultPref("browser.shell.checkDefaultBrowser", false); defaultPref("browser.shell.checkDefaultBrowser", false);
/** [SECTION] NEW TAB PAGE /** [SECTION] NEW TAB PAGE
* we want the new tab page to display nothing but the search bar without anything distracting. * we want NTP to display nothing but the search bar without anything distracting.
* the three prefs below are just for minimalism and they should be easy to revert for users.
*/ */
defaultPref("browser.newtab.preload", false);
defaultPref("browser.newtabpage.activity-stream.section.highlights.includeDownloads", false); defaultPref("browser.newtabpage.activity-stream.section.highlights.includeDownloads", false);
defaultPref("browser.newtabpage.activity-stream.section.highlights.includeVisited", false); defaultPref("browser.newtabpage.activity-stream.section.highlights.includeVisited", false);
defaultPref("browser.newtabpage.activity-stream.feeds.topsites", false); defaultPref("browser.newtabpage.activity-stream.feeds.topsites", false);
// hide pocket and sponsored content, from new tab page and search bar // hide stories and sponsored content from Firefox Home
lockPref("browser.newtabpage.activity-stream.feeds.section.topstories", false); lockPref("browser.newtabpage.activity-stream.feeds.section.topstories", false);
lockPref("browser.newtabpage.activity-stream.feeds.system.topstories", false);
lockPref("browser.newtabpage.activity-stream.feeds.telemetry", false);
lockPref("browser.newtabpage.activity-stream.feeds.section.topstories.options", "{\"hidden\":true}"); // hide buggy pocket section from about:preferences#home
lockPref("browser.newtabpage.activity-stream.showSponsored", false); lockPref("browser.newtabpage.activity-stream.showSponsored", false);
lockPref("browser.newtabpage.activity-stream.showSponsoredTopSites", false); lockPref("browser.newtabpage.activity-stream.showSponsoredTopSites", false);
// disable telemetry in Firefox Home
lockPref("browser.newtabpage.activity-stream.feeds.telemetry", false);
lockPref("browser.newtabpage.activity-stream.telemetry", false); lockPref("browser.newtabpage.activity-stream.telemetry", false);
// hide stories UI in about:preferences#home, empty highlights list
lockPref("browser.newtabpage.activity-stream.feeds.section.topstories.options", "{\"hidden\":true}");
lockPref("browser.newtabpage.activity-stream.default.sites", ""); lockPref("browser.newtabpage.activity-stream.default.sites", "");
lockPref("browser.newtabpage.activity-stream.feeds.discoverystreamfeed", false);
lockPref("browser.newtabpage.activity-stream.discoverystream.enabled", false);
lockPref("browser.newtabpage.activity-stream.feeds.snippets", false); // default
/** [SECTION] ABOUT /** [SECTION] ABOUT
* remove annoying ui elements from the about pages, including about:protections * remove annoying ui elements from the about pages, including about:protections
*/ */
defaultPref("browser.contentblocking.report.lockwise.enabled", false); defaultPref("browser.contentblocking.report.lockwise.enabled", false);
defaultPref("browser.contentblocking.report.monitor.enabled", false);
lockPref("browser.contentblocking.report.hide_vpn_banner", true); lockPref("browser.contentblocking.report.hide_vpn_banner", true);
lockPref("browser.contentblocking.report.vpn.enabled", false); lockPref("browser.contentblocking.report.vpn.enabled", false);
lockPref("browser.contentblocking.report.show_mobile_app", false); lockPref("browser.contentblocking.report.show_mobile_app", false);
lockPref("browser.vpn_promo.enabled", true); lockPref("browser.vpn_promo.enabled", false);
lockPref("browser.promo.focus.enabled", false);
// ...about:addons recommendations sections and more // ...about:addons recommendations sections and more
defaultPref("extensions.htmlaboutaddons.recommendations.enabled", false); defaultPref("extensions.htmlaboutaddons.recommendations.enabled", false);
defaultPref("extensions.getAddons.showPane", false); defaultPref("extensions.getAddons.showPane", false);
@ -510,9 +466,7 @@ lockPref("toolkit.telemetry.newProfilePing.enabled", false);
lockPref("toolkit.telemetry.updatePing.enabled", false); lockPref("toolkit.telemetry.updatePing.enabled", false);
lockPref("toolkit.telemetry.firstShutdownPing.enabled", false); lockPref("toolkit.telemetry.firstShutdownPing.enabled", false);
lockPref("toolkit.telemetry.shutdownPingSender.enabled", false); lockPref("toolkit.telemetry.shutdownPingSender.enabled", false);
lockPref("toolkit.telemetry.shutdownPingSender.enabledFirstSession", false); // default
lockPref("toolkit.telemetry.bhrPing.enabled", false); lockPref("toolkit.telemetry.bhrPing.enabled", false);
lockPref("toolkit.telemetry.reportingpolicy.firstRun", false); // default
lockPref("toolkit.telemetry.cachedClientID", ""); lockPref("toolkit.telemetry.cachedClientID", "");
lockPref("toolkit.telemetry.previousBuildID", ""); lockPref("toolkit.telemetry.previousBuildID", "");
lockPref("toolkit.telemetry.server_owner", ""); lockPref("toolkit.telemetry.server_owner", "");
@ -537,12 +491,10 @@ lockPref("browser.discovery.sites", "");
lockPref("browser.tabs.crashReporting.sendReport", false); lockPref("browser.tabs.crashReporting.sendReport", false);
lockPref("breakpad.reportURL", ""); lockPref("breakpad.reportURL", "");
// disable connectivity checks // disable connectivity checks
lockPref("network.connectivity-service.enabled", false); pref("network.connectivity-service.enabled", false);
// disable captive portal // disable captive portal
lockPref("network.captive-portal-service.enabled", false); pref("network.captive-portal-service.enabled", false);
lockPref("captivedetect.canonicalURL", ""); pref("captivedetect.canonicalURL", "");
// prevent sending server side analytics
lockPref("beacon.enabled", false);
/** [CATEGORY] WINDOWS /** [CATEGORY] WINDOWS
* the prefs in this section only apply to windows installations and they don't have any * the prefs in this section only apply to windows installations and they don't have any
@ -558,9 +510,8 @@ defaultPref("app.update.background.scheduling.enabled", false);
/** [SECTION] OTHERS */ /** [SECTION] OTHERS */
lockPref("default-browser-agent.enabled", false); // disable windows specific telemetry lockPref("default-browser-agent.enabled", false); // disable windows specific telemetry
defaultPref("network.protocol-handler.external.ms-windows-store", false); // prevent links from launching windows store defaultPref("network.protocol-handler.external.ms-windows-store", false); // prevent links from launching windows store
lockPref("toolkit.winRegisterApplicationRestart", false); // disable automatic start and session restore after reboot pref("toolkit.winRegisterApplicationRestart", false); // disable automatic start and session restore after reboot
lockPref("security.family_safety.mode", 0); // disable win8.1 family safety cert lockPref("security.family_safety.mode", 0); // disable win8.1 family safety cert
defaultPref("network.http.windows-sso.enabled", false); // disable MS auto authentication via sso