henry pushed to branch tor-browser-148.0a1-16.0-2 at The Tor Project / 
Applications / Tor Browser


Commits:
baed8491 by Henry Wilkes at 2026-03-02T16:26:22+00:00
BB 44711: Hide unwanted setting controls.

- - - - -
3848baf5 by Henry Wilkes at 2026-03-02T16:26:22+00:00
TB 44711: Hide unwanted setting controls.

- - - - -


2 changed files:

- browser/components/preferences/preferences.js
- browser/components/preferences/preferences.xhtml


Changes:

=====================================
browser/components/preferences/preferences.js
=====================================
@@ -242,11 +242,13 @@ const CONFIG_PANES = Object.freeze({
     groupIds: ["containers"],
   },
   dnsOverHttps: {
+    skip: true, // Skip DNS over HTTPS (DoH). tor-browser#41906.
     parent: "privacy",
     l10nId: "preferences-doh-header2",
     groupIds: ["dnsOverHttpsAdvanced"],
   },
   managePayments: {
+    skip: true,
     parent: "privacy",
     l10nId: "autofill-payment-methods-manage-payments-title",
     groupIds: ["managePayments"],
@@ -257,6 +259,7 @@ const CONFIG_PANES = Object.freeze({
     groupIds: ["profilePane"],
   },
   etp: {
+    skip: true, // Skip enhanced tracking protection. tor-browser#33848.
     parent: "privacy",
     l10nId: "preferences-etp-header",
     groupIds: ["etpBanner", "etpAdvanced"],
@@ -267,11 +270,13 @@ const CONFIG_PANES = Object.freeze({
     groupIds: ["etpReset", "etpCustomize"],
   },
   manageAddresses: {
+    skip: true,
     parent: "privacy",
     l10nId: "autofill-addresses-manage-addresses-title",
     groupIds: ["manageAddresses"],
   },
   translations: {
+    skip: true, // Skip translations. tor-browser#44710.
     parent: "general",
     l10nId: "settings-translations-subpage-header",
     groupIds: [
@@ -281,6 +286,7 @@ const CONFIG_PANES = Object.freeze({
     iconSrc: "chrome://browser/skin/translations.svg",
   },
   aiFeatures: {
+    skip: true, // Skip AI pane. tor-browser#44709.
     l10nId: "preferences-ai-features-header",
     groupIds: ["debugModelManagement", "aiFeatures", "aiWindowFeatures"],
     module: "chrome://browser/content/preferences/config/aiFeatures.mjs",
@@ -346,6 +352,22 @@ function init_all() {
   register_module("paneContainers", gContainersPane);
 
   for (let [id, config] of Object.entries(CONFIG_PANES)) {
+    // Skip over configs we do not want, including all its children.
+    // See tor-browser#44711.
+    let skip = false;
+    let parentConfig = config;
+    while (parentConfig) {
+      skip = parentConfig.skip;
+      if (skip) {
+        break;
+      }
+      parentConfig = parentConfig.parent
+        ? CONFIG_PANES[parentConfig.parent]
+        : undefined;
+    }
+    if (skip) {
+      continue;
+    }
     SettingPaneManager.registerPane(id, config);
   }
 


=====================================
browser/components/preferences/preferences.xhtml
=====================================
@@ -175,8 +175,12 @@
           <label class="category-name" flex="1" 
data-l10n-id="pane-sync-title3"></label>
         </richlistitem>
 
+        <!-- We skip registering the "ai" pane (aiFeatures.mjs), which means
+           - this richlistitem is non-functional and unmanaged. We have to
+           - manually hide it instead. See tor-browser#44709. -->
         <richlistitem id="category-ai-features"
                       class="category"
+                      hidden="true"
                       value="paneAiFeatures"
                       data-l10n-id="category-ai-features"
                       data-l10n-attrs="tooltiptext"
@@ -222,7 +226,9 @@
                       class="category hidden-category"
                       value="paneProfiles"/>
 
+        <!-- Hide the translations sub-pane. tor-browser#44710. -->
         <richlistitem
+                      hidden="true"
                       class="category hidden-category"
                       value="paneTranslations"/>
 



View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/bfa83e898ddaaad3a3e739db76e9c1f8813d5438...3848baf546b6822b3bc8637d2f88fc34feae8e84

-- 
View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/bfa83e898ddaaad3a3e739db76e9c1f8813d5438...3848baf546b6822b3bc8637d2f88fc34feae8e84
You're receiving this email because of your account on gitlab.torproject.org.


_______________________________________________
tbb-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to