Commit 9f406d1e authored by henry's avatar henry Committed by Pier Angelo Vendrame
Browse files

TB 44711: Hide unwanted setting controls in Tor Browser.

parent 597ef6e0
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -184,6 +184,10 @@ export const DefaultBrowserHelper = {
   * @type {boolean}
   */
  get canCheck() {
    if (AppConstants.BASE_BROWSER_VERSION) {
      // Disabled for Tor Browser. tor-browser#44343 and tor-browser#41822.
      return false;
    }
    return (
      this.shellSvc &&
      /**
+2 −0
Original line number Diff line number Diff line
@@ -3213,6 +3213,8 @@ Preferences.addSetting({

Preferences.addSetting({
  id: "dohBox",
  // Hide DNS over HTTPS. tor-browser#41906.
  visible: () => false,
});

Preferences.addSetting({
+3 −0
Original line number Diff line number Diff line
@@ -373,6 +373,9 @@ Preferences.addSetting({

Preferences.addSetting({
  id: "connectionSettings",
  // Hide the connection settings for Tor Browser since these would interfere
  // with the settings in the "connection" pane. tor-browser#31286.
  visible: () => false,
  onUserClick: () => gMainPane.showConnections(),
  controllingExtensionInfo: {
    storeId: PROXY_KEY,
+1 −0
Original line number Diff line number Diff line
@@ -316,6 +316,7 @@ const CONFIG_PANES = Object.freeze({
    replaces: "privacy",
  },
  dnsOverHttps: {
    skip: true, // Skip DNS over HTTPS (DoH). tor-browser#41906.
    parent: "privacy",
    l10nId: "preferences-doh-header2",
    groupIds: ["dnsOverHttpsAdvanced"],