[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/tor-browser][tor-browser-148.0a1-16.0-2] 2 commits: BB 44711: Hide unwanted setting controls.



Title: GitLab

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:

Changes:

  • browser/components/preferences/preferences.js
    ... ... @@ -242,11 +242,13 @@ const CONFIG_PANES = Object.freeze({
    242 242
         groupIds: ["containers"],
    
    243 243
       },
    
    244 244
       dnsOverHttps: {
    
    245
    +    skip: true, // Skip DNS over HTTPS (DoH). tor-browser#41906.
    
    245 246
         parent: "privacy",
    
    246 247
         l10nId: "preferences-doh-header2",
    
    247 248
         groupIds: ["dnsOverHttpsAdvanced"],
    
    248 249
       },
    
    249 250
       managePayments: {
    
    251
    +    skip: true,
    
    250 252
         parent: "privacy",
    
    251 253
         l10nId: "autofill-payment-methods-manage-payments-title",
    
    252 254
         groupIds: ["managePayments"],
    
    ... ... @@ -257,6 +259,7 @@ const CONFIG_PANES = Object.freeze({
    257 259
         groupIds: ["profilePane"],
    
    258 260
       },
    
    259 261
       etp: {
    
    262
    +    skip: true, // Skip enhanced tracking protection. tor-browser#33848.
    
    260 263
         parent: "privacy",
    
    261 264
         l10nId: "preferences-etp-header",
    
    262 265
         groupIds: ["etpBanner", "etpAdvanced"],
    
    ... ... @@ -267,11 +270,13 @@ const CONFIG_PANES = Object.freeze({
    267 270
         groupIds: ["etpReset", "etpCustomize"],
    
    268 271
       },
    
    269 272
       manageAddresses: {
    
    273
    +    skip: true,
    
    270 274
         parent: "privacy",
    
    271 275
         l10nId: "autofill-addresses-manage-addresses-title",
    
    272 276
         groupIds: ["manageAddresses"],
    
    273 277
       },
    
    274 278
       translations: {
    
    279
    +    skip: true, // Skip translations. tor-browser#44710.
    
    275 280
         parent: "general",
    
    276 281
         l10nId: "settings-translations-subpage-header",
    
    277 282
         groupIds: [
    
    ... ... @@ -281,6 +286,7 @@ const CONFIG_PANES = Object.freeze({
    281 286
         iconSrc: "chrome://browser/skin/translations.svg",
    
    282 287
       },
    
    283 288
       aiFeatures: {
    
    289
    +    skip: true, // Skip AI pane. tor-browser#44709.
    
    284 290
         l10nId: "preferences-ai-features-header",
    
    285 291
         groupIds: ["debugModelManagement", "aiFeatures", "aiWindowFeatures"],
    
    286 292
         module: "chrome://browser/content/preferences/config/aiFeatures.mjs",
    
    ... ... @@ -346,6 +352,22 @@ function init_all() {
    346 352
       register_module("paneContainers", gContainersPane);
    
    347 353
     
    
    348 354
       for (let [id, config] of Object.entries(CONFIG_PANES)) {
    
    355
    +    // Skip over configs we do not want, including all its children.
    
    356
    +    // See tor-browser#44711.
    
    357
    +    let skip = false;
    
    358
    +    let parentConfig = config;
    
    359
    +    while (parentConfig) {
    
    360
    +      skip = parentConfig.skip;
    
    361
    +      if (skip) {
    
    362
    +        break;
    
    363
    +      }
    
    364
    +      parentConfig = parentConfig.parent
    
    365
    +        ? CONFIG_PANES[parentConfig.parent]
    
    366
    +        : undefined;
    
    367
    +    }
    
    368
    +    if (skip) {
    
    369
    +      continue;
    
    370
    +    }
    
    349 371
         SettingPaneManager.registerPane(id, config);
    
    350 372
       }
    
    351 373
     
    

  • browser/components/preferences/preferences.xhtml
    ... ... @@ -175,8 +175,12 @@
    175 175
               <label class="category-name" flex="1" data-l10n-id="pane-sync-title3"></label>
    
    176 176
             </richlistitem>
    
    177 177
     
    
    178
    +        <!-- We skip registering the "ai" pane (aiFeatures.mjs), which means
    
    179
    +           - this richlistitem is non-functional and unmanaged. We have to
    
    180
    +           - manually hide it instead. See tor-browser#44709. -->
    
    178 181
             <richlistitem id="category-ai-features"
    
    179 182
                           class="category"
    
    183
    +                      hidden="true"
    
    180 184
                           value="paneAiFeatures"
    
    181 185
                           data-l10n-id="category-ai-features"
    
    182 186
                           data-l10n-attrs="tooltiptext"
    
    ... ... @@ -222,7 +226,9 @@
    222 226
                           class="category hidden-category"
    
    223 227
                           value="paneProfiles"/>
    
    224 228
     
    
    229
    +        <!-- Hide the translations sub-pane. tor-browser#44710. -->
    
    225 230
             <richlistitem
    
    231
    +                      hidden="true"
    
    226 232
                           class="category hidden-category"
    
    227 233
                           value="paneTranslations"/>
    
    228 234
     
    

  • _______________________________________________
    tor-commits mailing list -- tor-commits@xxxxxxxxxxxxxxxxxxxx
    To unsubscribe send an email to tor-commits-leave@xxxxxxxxxxxxxxxxxxxx