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


Commits:
45bc9a0c by Henry Wilkes at 2026-03-10T09:48:26+00:00
BB 44711: Hide unwanted setting controls.

- - - - -


2 changed files:

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


Changes:

=====================================
browser/components/preferences/preferences.js
=====================================
@@ -246,6 +246,7 @@ const CONFIG_PANES = Object.freeze({
     groupIds: ["dnsOverHttpsAdvanced"],
   },
   managePayments: {
+    skip: true,
     parent: "privacy",
     l10nId: "autofill-payment-methods-manage-payments-title",
     groupIds: ["managePayments"],
@@ -256,6 +257,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"],
@@ -266,11 +268,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: [
@@ -280,6 +284,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",
@@ -345,6 +350,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
=====================================
@@ -172,8 +172,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"
@@ -219,7 +223,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/mullvad-browser/-/commit/45bc9a0c1b6daba582d2e36b029b4ffababd9562

-- 
View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/45bc9a0c1b6daba582d2e36b029b4ffababd9562
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