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

[tor-commits] [Git][tpo/applications/tor-browser][base-browser-128.6.0esr-14.5-1] fixup! Firefox preference overrides.



Title: GitLab

morgan pushed to branch base-browser-128.6.0esr-14.5-1 at The Tor Project / Applications / Tor Browser

Commits:

  • 3a015664
    by Pier Angelo Vendrame at 2025-01-15T15:47:59+00:00
    fixup! Firefox preference overrides.
    
    BB 41065: Hardcode the limit of storage quota.
    
    Currently, we return min(10GB, 0.2 * available space in the fs).
    This is bad for systems that have less than 50GB free, especially live
    systems, such as Tails.
    Set a pref to replace the available space with a hardcoded limit
    (5GiB).
    

1 changed file:

Changes:

  • browser/app/profile/001-base-profile.js
    ... ... @@ -87,6 +87,15 @@ pref("browser.sessionstore.privacy_level", 2);
    87 87
     // Use the in-memory media cache and increase its maximum size (#29120)
    
    88 88
     pref("browser.privatebrowsing.forceMediaMemoryCache", true);
    
    89 89
     pref("media.memory_cache_max_size", 65536);
    
    90
    +// tor-browser#41065: lie about the available quota.
    
    91
    +// This value is in KiB, and will be divided by 5. Currently: 50GiB, to be
    
    92
    +// coherent with Firefox's usual value. However, this might be too much for live
    
    93
    +// systems.
    
    94
    +// This will be the limit also after granting the persistent storage permission,
    
    95
    +// but we are not interested in it, since we support only PBM.
    
    96
    +// We can come back to it, and hardcode the two spaced differently, if we ever
    
    97
    +// think we need it.
    
    98
    +pref("dom.quotaManager.temporaryStorage.fixedLimit", 52428800);
    
    90 99
     // Disable restore in case of crash (tor-browser#41503)
    
    91 100
     // This should not be needed in PBM, but we added it anyway like other options.
    
    92 101
     pref("browser.sessionstore.resume_from_crash", false);
    

  • _______________________________________________
    tor-commits mailing list -- tor-commits@xxxxxxxxxxxxxxxxxxxx
    To unsubscribe send an email to tor-commits-leave@xxxxxxxxxxxxxxxxxxxx