morgan pushed to branch mullvad-browser-153.0esr-16.0-1 at The Tor Project / Applications / Mullvad Browser

Commits:

2 changed files:

Changes:

  • browser/app/profile/001-base-profile.js
    ... ... @@ -72,6 +72,10 @@ pref("browser.helperApps.deleteTempFileOnExit", true);
    72 72
     // Prevent download stuffing / DOS (tor-browser#41764)
    
    73 73
     pref("browser.download.enable_spam_prevention", true);
    
    74 74
     
    
    75
    +// tor-browser#45187: Disable offering to delete downloaded files when closing
    
    76
    +// private browsing windows because it does not work as expected in 16.0.
    
    77
    +pref("browser.download.enableDeletePrivate", false);
    
    78
    +
    
    75 79
     // tor-browser#41131: This is normally gated on
    
    76 80
     // privacy.sanitize.sanitizeOnShutdown, which is false by default. But in case
    
    77 81
     // users enable it, make sure background tasks are not used for this, since we
    

  • browser/components/ProfileDataUpgrader.sys.mjs
    ... ... @@ -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
           }