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

[tor-commits] [Git][tpo/applications/tor-browser][tor-browser-152.0a1-16.0-2] fixup! BB 44711: Hide unwanted setting controls in Base Browser.



Title: GitLab

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

Commits:

  • c92588e8
    by Henry Wilkes at 2026-06-08T16:06:41+00:00
    fixup! BB 44711: Hide unwanted setting controls in Base Browser.
    
    BB 45018: Add resistFingerprinting settings prior to importing other
    modules.
    
    Also, remove a stray "resistFingeprinting" Setting definition in
    privacy.mjs that should have been removed in the 152 rebase.
    

2 changed files:

Changes:

  • browser/components/preferences/config/privacy.mjs
    ... ... @@ -3580,11 +3580,6 @@ Preferences.addSetting({
    3580 3580
       },
    
    3581 3581
     });
    
    3582 3582
     
    
    3583
    -Preferences.addSetting({
    
    3584
    -  id: "resistFingerprinting",
    
    3585
    -  pref: "privacy.resistFingerprinting",
    
    3586
    -});
    
    3587
    -
    
    3588 3583
     Preferences.addSetting({
    
    3589 3584
       id: "resistFingerprintingPBM",
    
    3590 3585
       pref: "privacy.resistFingerprinting.pbmode",
    

  • browser/components/preferences/main.js
    ... ... @@ -39,6 +39,16 @@ ChromeUtils.defineESModuleGetters(this, {
    39 39
         "resource://autofill/FormAutofillPreferences.sys.mjs",
    
    40 40
     });
    
    41 41
     
    
    42
    +// Rather than add "privacy.resistFingerprinting" preference and the
    
    43
    +// "resistFingerprinting" Setting in privacy.mjs, we add them early *prior* to
    
    44
    +// importing any config/ modules which require it.
    
    45
    +// See tor-browser#44630 and tor-browser#45018.
    
    46
    +Preferences.add({ id: "privacy.resistFingerprinting", type: "bool" });
    
    47
    +Preferences.addSetting({
    
    48
    +  id: "resistFingerprinting",
    
    49
    +  pref: "privacy.resistFingerprinting",
    
    50
    +});
    
    51
    +
    
    42 52
     ChromeUtils.importESModule(
    
    43 53
       "chrome://browser/content/preferences/config/accessibility.mjs",
    
    44 54
       { global: "current" }
    
    ... ... @@ -93,10 +103,6 @@ function canShowAiFeature(featureSetting, defaultSetting) {
    93 103
     }
    
    94 104
     
    
    95 105
     Preferences.addAll([
    
    96
    -  // Rather than add "privacy.resistFingerprinting" in privacy.js, we add it
    
    97
    -  // early so we can define the "resistFingerprinting" `Setting` in this file.
    
    98
    -  // See below. See tor-browser#44630.
    
    99
    -  { id: "privacy.resistFingerprinting", type: "bool" },
    
    100 106
       // Startup
    
    101 107
       { id: "browser.startup.page", type: "int" },
    
    102 108
       { id: "browser.startup.windowsLaunchOnLogin.enabled", type: "bool" },
    
    ... ... @@ -129,18 +135,6 @@ if (AppConstants.HAVE_SHELL_SERVICE) {
    129 135
       ]);
    
    130 136
     }
    
    131 137
     
    
    132
    -// Rather than add "resistFingerprinting" in privacy.js, we add it to the
    
    133
    -// settings early so we can have it be part of the setting config's `deps` field
    
    134
    -// early. See tor-browser#44630.
    
    135
    -// In particular, `Setting.deps` is lazy set. For many settings, this will only
    
    136
    -// be set *after* all settings have been added. However, for settings with a
    
    137
    -// `setup` field, the `deps` value will be set during construction, so we need
    
    138
    -// the corresponding dependency available prior to construction.
    
    139
    -Preferences.addSetting({
    
    140
    -  id: "resistFingerprinting",
    
    141
    -  pref: "privacy.resistFingerprinting",
    
    142
    -});
    
    143
    -
    
    144 138
     Preferences.addSetting({
    
    145 139
       id: "privateBrowsingAutoStart",
    
    146 140
       pref: "browser.privatebrowsing.autostart",
    

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