| ... |
... |
@@ -1041,6 +1041,8 @@ export let ProfileDataUpgrader = { |
|
1041
|
1041
|
// Version 5: 15.0a3: Disable LaterRun using prefs. tor-browser#42630.
|
|
1042
|
1042
|
// Version 6: 15.0a4: Reset browser colors. tor-browser#43850.
|
|
1043
|
1043
|
// Version 7: 16.0a10: Reset safe browsing preferences. tor-browser#44802.
|
|
|
1044
|
+ // Also reset delete downloads preferences.
|
|
|
1045
|
+ // tor-browser#45187.
|
|
1044
|
1046
|
const MIGRATION_VERSION = 7;
|
|
1045
|
1047
|
const MIGRATION_PREF = "basebrowser.migration.version";
|
|
1046
|
1048
|
|
| ... |
... |
@@ -1140,16 +1142,20 @@ export let ProfileDataUpgrader = { |
|
1140
|
1142
|
}
|
|
1141
|
1143
|
}
|
|
1142
|
1144
|
if (currentVersion < 7) {
|
|
1143
|
|
- // Clear these preferences since:
|
|
1144
|
|
- // + They aren't expected to work.
|
|
1145
|
|
- // + We are hiding the UI to change these. tor-browser#44802.
|
|
1146
|
1145
|
for (const prefName of [
|
|
|
1146
|
+ // Clear these preferences since:
|
|
|
1147
|
+ // + They aren't expected to work.
|
|
|
1148
|
+ // + We are hiding the UI to change these. tor-browser#44802.
|
|
1147
|
1149
|
"browser.safebrowsing.phishing.enabled",
|
|
1148
|
1150
|
"browser.safebrowsing.malware.enabled",
|
|
1149
|
1151
|
"browser.safebrowsing.downloads.enabled",
|
|
1150
|
1152
|
"browser.safebrowsing.downloads.remote.block_uncommon",
|
|
1151
|
1153
|
"browser.safebrowsing.downloads.remote.block_potentially_unwanted",
|
|
1152
|
1154
|
"urlclassifier.malwareTable",
|
|
|
1155
|
+ // Clear the downloads preferences for alpha profiles in case we want to
|
|
|
1156
|
+ // re-offer this feature again in the future. tor-browser#45187.
|
|
|
1157
|
+ "browser.download.deletePrivate",
|
|
|
1158
|
+ "browser.download.deletePrivate.chosen",
|
|
1153
|
1159
|
]) {
|
|
1154
|
1160
|
Services.prefs.clearUserPref(prefName);
|
|
1155
|
1161
|
}
|