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