[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/tor-browser][tor-browser-102.7.0esr-12.5-1] Bug 41542: Disable the creation of a default profile



Title: GitLab

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

Commits:

  • 65ab09ce
    by Pier Angelo Vendrame at 2023-01-20T18:26:28+01:00
    Bug 41542: Disable the creation of a default profile
    
    Firefox creates a profile as a fallback for old versions.
    However, we do not need this, so we want to prevent Firefox from
    creating the related directories.
    
    We comment out the code, but should Mozilla be interested in a
    compile-time flag, we could rewrite the patch to add one.
    
    See also https://bugzilla.mozilla.org/show_bug.cgi?id=1770174.
    

1 changed file:

Changes:

  • toolkit/profile/nsToolkitProfileService.cpp
    ... ... @@ -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);
    

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits