Pier Angelo Vendrame pushed to branch mullvad-browser-140.0esr-15.0-1 at The Tor Project / Applications / Mullvad Browser

Commits:

1 changed file:

Changes:

  • browser/components/BrowserGlue.sys.mjs
    ... ... @@ -1844,6 +1844,15 @@ BrowserGlue.prototype = {
    1844 1844
         // Version 3: 14.0a7: Reset general.smoothScroll. tor-browser#42070.
    
    1845 1845
         const MIGRATION_VERSION = 3;
    
    1846 1846
         const MIGRATION_PREF = "basebrowser.migration.version";
    
    1847
    +    if (this._isNewProfile) {
    
    1848
    +      // Do not migrate fresh profiles
    
    1849
    +      Services.prefs.setIntPref(MIGRATION_PREF, MIGRATION_VERSION);
    
    1850
    +      return;
    
    1851
    +    } else if (this._isNewProfile === undefined) {
    
    1852
    +      // If this happens, check if upstream updated their function and do not
    
    1853
    +      // set this member anymore!
    
    1854
    +      console.error("_migrateUIBB: this._isNewProfile is undefined.");
    
    1855
    +    }
    
    1847 1856
         // We do not care whether this is a new or old profile, since in version 1
    
    1848 1857
         // we just quickly clear a user preference, which should not do anything to
    
    1849 1858
         // new profiles.