Commits:
-
cba29173
by Henry Wilkes at 2026-06-09T17:03:07+01:00
fixup! BB 44711: Hide unwanted setting controls in Base Browser.
BB 45043: Re-add missing changes to settings after 152 rebase.
Drop changes to "addresses" and "payments" since these now properly
hidden without the formautofill extension being in the build.
3 changed files:
Changes:
browser/components/preferences/config/passwords-autofill.mjs
| ... |
... |
@@ -757,9 +757,6 @@ SettingGroupManager.registerGroups({ |
|
757
|
757
|
],
|
|
758
|
758
|
},
|
|
759
|
759
|
managePayments: {
|
|
760
|
|
- // Hide the payments settings. tor-browser#44460.
|
|
761
|
|
- hidden: true,
|
|
762
|
|
- hiddenFromSearch: true,
|
|
763
|
760
|
items: [
|
|
764
|
761
|
{
|
|
765
|
762
|
id: "add-payment-button",
|
| ... |
... |
@@ -776,9 +773,6 @@ SettingGroupManager.registerGroups({ |
|
776
|
773
|
],
|
|
777
|
774
|
},
|
|
778
|
775
|
manageAddresses: {
|
|
779
|
|
- // Hide the addresses settings. tor-browser#44460.
|
|
780
|
|
- hidden: true,
|
|
781
|
|
- hiddenFromSearch: true,
|
|
782
|
776
|
items: [
|
|
783
|
777
|
{
|
|
784
|
778
|
id: "add-address-button",
|
browser/components/preferences/config/privacy.mjs
| ... |
... |
@@ -2226,6 +2226,13 @@ Preferences.addSetting({ |
|
2226
|
2226
|
id: "relayIntegration",
|
|
2227
|
2227
|
deps: ["savePasswords", "relayFeature"],
|
|
2228
|
2228
|
visible: () => {
|
|
|
2229
|
+ // Hide Firefox Relay. tor-browser#43109 and tor-browser#42814.
|
|
|
2230
|
+ // NOTE: Whilst `FirefoxRelay.isDisabled` is `true` due to preferences we
|
|
|
2231
|
+ // set for Base Browser, `FirefoxRelay.isAvailable` is also `true` in this
|
|
|
2232
|
+ // case, hence why we still need to hide this unconditionally.
|
|
|
2233
|
+ if (lazy.AppConstants.BASE_BROWSER_VERSION) {
|
|
|
2234
|
+ return false;
|
|
|
2235
|
+ }
|
|
2229
|
2236
|
return lazy.FirefoxRelay.isAvailable;
|
|
2230
|
2237
|
},
|
|
2231
|
2238
|
disabled: ({ savePasswords, relayFeature }) => {
|
| ... |
... |
@@ -3498,6 +3505,8 @@ Preferences.addSetting({ |
|
3498
|
3505
|
|
|
3499
|
3506
|
Preferences.addSetting({
|
|
3500
|
3507
|
id: "etpStatusBoxGroup",
|
|
|
3508
|
+ // Hide enhanced tracking protection (ETP). tor-browser#26345.
|
|
|
3509
|
+ visible: () => false,
|
|
3501
|
3510
|
});
|
|
3502
|
3511
|
|
|
3503
|
3512
|
Preferences.addSetting({
|
| ... |
... |
@@ -3530,6 +3539,8 @@ Preferences.addSetting({ |
|
3530
|
3539
|
|
|
3531
|
3540
|
Preferences.addSetting({
|
|
3532
|
3541
|
id: "protectionsDashboardLink",
|
|
|
3542
|
+ // Hide enhanced tracking protection (ETP). tor-browser#26345.
|
|
|
3543
|
+ visible: () => false,
|
|
3533
|
3544
|
});
|
|
3534
|
3545
|
|
|
3535
|
3546
|
Preferences.addSetting({
|
browser/components/preferences/privacy.js
| ... |
... |
@@ -640,12 +640,6 @@ var gPrivacyPane = { |
|
640
|
640
|
initSettingGroup("cookiesAndSiteData2");
|
|
641
|
641
|
initSettingGroup("certificates");
|
|
642
|
642
|
initSettingGroup("ipprotection");
|
|
643
|
|
- // NOTE: "managePayments" and "manageAddresses" are usually initialised by
|
|
644
|
|
- // FormAutofillPreferences.sys.mjs via FormAutofillStatus. But this never
|
|
645
|
|
- // runs because the "autofill" extension is excluded from the build. So we
|
|
646
|
|
- // initialise them ourselves with an empty config. See tor-browser#44630.
|
|
647
|
|
- initSettingGroup("managePayments");
|
|
648
|
|
- initSettingGroup("manageAddresses");
|
|
649
|
643
|
initSettingGroup("history");
|
|
650
|
644
|
initSettingGroup("history2");
|
|
651
|
645
|
initSettingGroup("permissions");
|
|