| ... |
... |
@@ -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
|
|