Pier Angelo Vendrame pushed to branch base-browser-140.0esr-15.0-1 at The Tor Project / Applications / Tor Browser
Commits:
-
d73923cb
by Neel Chauhan at 2025-07-16T18:27:21+02:00
1 changed file:
Changes:
... | ... | @@ -1840,6 +1840,15 @@ BrowserGlue.prototype = { |
1840 | 1840 | // Version 3: 14.0a7: Reset general.smoothScroll. tor-browser#42070.
|
1841 | 1841 | const MIGRATION_VERSION = 3;
|
1842 | 1842 | const MIGRATION_PREF = "basebrowser.migration.version";
|
1843 | + if (this._isNewProfile) {
|
|
1844 | + // Do not migrate fresh profiles
|
|
1845 | + Services.prefs.setIntPref(MIGRATION_PREF, MIGRATION_VERSION);
|
|
1846 | + return;
|
|
1847 | + } else if (this._isNewProfile === undefined) {
|
|
1848 | + // If this happens, check if upstream updated their function and do not
|
|
1849 | + // set this member anymore!
|
|
1850 | + console.error("_migrateUIBB: this._isNewProfile is undefined.");
|
|
1851 | + }
|
|
1843 | 1852 | // We do not care whether this is a new or old profile, since in version 1
|
1844 | 1853 | // we just quickly clear a user preference, which should not do anything to
|
1845 | 1854 | // new profiles.
|