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

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



Title: GitLab

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

Commits:

  • a9f50c4e
    by Pier Angelo Vendrame at 2023-01-23T17:39: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
    ... ... @@ -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);
    

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