Pier Angelo Vendrame pushed to branch base-browser-102.8.0esr-12.0-1 at The Tor Project / Applications / Tor Browser
Commits:
-
95267ce7
by Pier Angelo Vendrame at 2023-02-16T08:34:57+01:00
1 changed file:
Changes:
... | ... | @@ -1578,6 +1578,12 @@ nsresult nsToolkitProfileService::SelectStartupProfile( |
1578 | 1578 | |
1579 | 1579 | rv = CreateDefaultProfile(getter_AddRefs(mCurrent));
|
1580 | 1580 | if (NS_SUCCEEDED(rv)) {
|
1581 | + // tor-browser#41542: We do not need to support legacy versions.
|
|
1582 | + // For now, we just use an ifdef, but we could write a patch to disable
|
|
1583 | + // this behavior through a build-time flag, should Mozilla be interested
|
|
1584 | + // in taking it.
|
|
1585 | + // See also https://bugzilla.mozilla.org/show_bug.cgi?id=1770174
|
|
1586 | +#ifndef BASE_BROWSER
|
|
1581 | 1587 | // If there is only one profile and it isn't meant to be the profile that
|
1582 | 1588 | // older versions of Firefox use then we must create a default profile
|
1583 | 1589 | // for older versions of Firefox to avoid the existing profile being
|
... | ... | @@ -1589,6 +1595,7 @@ nsresult nsToolkitProfileService::SelectStartupProfile( |
1589 | 1595 | getter_AddRefs(newProfile));
|
1590 | 1596 | SetNormalDefault(newProfile);
|
1591 | 1597 | }
|
1598 | +#endif
|
|
1592 | 1599 | |
1593 | 1600 | rv = Flush();
|
1594 | 1601 | NS_ENSURE_SUCCESS(rv, rv);
|