| ... |
... |
@@ -19,6 +19,18 @@ |
|
19
|
19
|
* @import { Setting } from "chrome://global/content/preferences/Setting.mjs"
|
|
20
|
20
|
*/
|
|
21
|
21
|
|
|
|
22
|
+// **Important**: the import blocks following this definition depend on it!
|
|
|
23
|
+// **Keep it here!**
|
|
|
24
|
+// Rather than add "privacy.resistFingerprinting" preference and the
|
|
|
25
|
+// "resistFingerprinting" Setting in privacy.mjs, we add them early *prior* to
|
|
|
26
|
+// importing any config/ modules which require it.
|
|
|
27
|
+// See tor-browser#44630, tor-browser#45018, and tor-browser#45417.
|
|
|
28
|
+Preferences.add({ id: "privacy.resistFingerprinting", type: "bool" });
|
|
|
29
|
+Preferences.addSetting({
|
|
|
30
|
+ id: "resistFingerprinting",
|
|
|
31
|
+ pref: "privacy.resistFingerprinting",
|
|
|
32
|
+});
|
|
|
33
|
+
|
|
22
|
34
|
/**
|
|
23
|
35
|
* Imports a module into this window's global.
|
|
24
|
36
|
*
|
| ... |
... |
@@ -100,16 +112,6 @@ function canShowAiFeature(featureSetting, defaultSetting) { |
|
100
|
112
|
);
|
|
101
|
113
|
}
|
|
102
|
114
|
|
|
103
|
|
-// Rather than add "privacy.resistFingerprinting" preference and the
|
|
104
|
|
-// "resistFingerprinting" Setting in privacy.mjs, we add them early *prior* to
|
|
105
|
|
-// importing any config/ modules which require it.
|
|
106
|
|
-// See tor-browser#44630 and tor-browser#45018.
|
|
107
|
|
-Preferences.add({ id: "privacy.resistFingerprinting", type: "bool" });
|
|
108
|
|
-Preferences.addSetting({
|
|
109
|
|
- id: "resistFingerprinting",
|
|
110
|
|
- pref: "privacy.resistFingerprinting",
|
|
111
|
|
-});
|
|
112
|
|
-
|
|
113
|
115
|
Preferences.addAll([
|
|
114
|
116
|
// Startup
|
|
115
|
117
|
{ id: "browser.startup.page", type: "int" },
|