Commit 81c2b390 authored by henry's avatar henry Committed by henry
Browse files

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.
parent acdf6230
Loading
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -778,9 +778,6 @@ SettingGroupManager.registerGroups({
    ],
  },
  managePayments: {
    // Hide the payments settings. tor-browser#44460.
    hidden: true,
    hiddenFromSearch: true,
    items: [
      {
        id: "add-payment-button",
@@ -797,9 +794,6 @@ SettingGroupManager.registerGroups({
    ],
  },
  manageAddresses: {
    // Hide the addresses settings. tor-browser#44460.
    hidden: true,
    hiddenFromSearch: true,
    items: [
      {
        id: "add-address-button",
+11 −0
Original line number Diff line number Diff line
@@ -2226,6 +2226,13 @@ Preferences.addSetting({
  id: "relayIntegration",
  deps: ["savePasswords", "relayFeature"],
  visible: () => {
    // Hide Firefox Relay. tor-browser#43109 and tor-browser#42814.
    // NOTE: Whilst `FirefoxRelay.isDisabled` is `true` due to preferences we
    // set for Base Browser, `FirefoxRelay.isAvailable` is also `true` in this
    // case, hence why we still need to hide this unconditionally.
    if (lazy.AppConstants.BASE_BROWSER_VERSION) {
      return false;
    }
    return lazy.FirefoxRelay.isAvailable;
  },
  disabled: ({ savePasswords, relayFeature }) => {
@@ -3496,6 +3503,8 @@ Preferences.addSetting({

Preferences.addSetting({
  id: "etpStatusBoxGroup",
  // Hide enhanced tracking protection (ETP). tor-browser#26345.
  visible: () => false,
});

Preferences.addSetting({
@@ -3528,6 +3537,8 @@ Preferences.addSetting({

Preferences.addSetting({
  id: "protectionsDashboardLink",
  // Hide enhanced tracking protection (ETP). tor-browser#26345.
  visible: () => false,
});

Preferences.addSetting({
+0 −6
Original line number Diff line number Diff line
@@ -641,12 +641,6 @@ var gPrivacyPane = {
    initSettingGroup("onionSiteAuthentication");
    initSettingGroup("certificates");
    initSettingGroup("ipprotection");
    // NOTE: "managePayments" and "manageAddresses" are usually initialised by
    // FormAutofillPreferences.sys.mjs via FormAutofillStatus. But this never
    // runs because the "autofill" extension is excluded from the build. So we
    // initialise them ourselves with an empty config. See tor-browser#44630.
    initSettingGroup("managePayments");
    initSettingGroup("manageAddresses");
    initSettingGroup("history");
    initSettingGroup("history2");
    initSettingGroup("permissions");