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

Commits:

1 changed file:

Changes:

  • browser/components/BrowserGlue.sys.mjs
    ... ... @@ -1882,6 +1882,15 @@ BrowserGlue.prototype = {
    1882 1882
         // Version 3: 14.0a7: Reset general.smoothScroll. tor-browser#42070.
    
    1883 1883
         const MIGRATION_VERSION = 3;
    
    1884 1884
         const MIGRATION_PREF = "basebrowser.migration.version";
    
    1885
    +    if (this._isNewProfile) {
    
    1886
    +      // Do not migrate fresh profiles
    
    1887
    +      Services.prefs.setIntPref(MIGRATION_PREF, MIGRATION_VERSION);
    
    1888
    +      return;
    
    1889
    +    } else if (this._isNewProfile === undefined) {
    
    1890
    +      // If this happens, check if upstream updated their function and do not
    
    1891
    +      // set this member anymore!
    
    1892
    +      console.error("_migrateUIBB: this._isNewProfile is undefined.");
    
    1893
    +    }
    
    1885 1894
         // We do not care whether this is a new or old profile, since in version 1
    
    1886 1895
         // we just quickly clear a user preference, which should not do anything to
    
    1887 1896
         // new profiles.