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