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

[tor-commits] [Git][tpo/applications/tor-browser][base-browser-128.7.0esr-14.0-1] 3 commits: fixup! Firefox preference overrides.



Title: GitLab

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

Commits:

  • 95637e62
    by Pier Angelo Vendrame at 2025-01-28T16:39:42+01: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).
    
  • dc62e33f
    by Pier Angelo Vendrame at 2025-01-28T16:39:56+01:00
    Bug 43386: Use Firefox in the UA in RFP-exempt request.
    
    XHR requests initiated by extensions are exempt from RFP.
    Therefore, they report the actual app name, instead of Firefox, and the
    actual Firefox minor version.
    
    This happens whenever the app name has been customized and does not
    match a hardcoded "Firefox".
    
  • 54e4f8f0
    by Pier Angelo Vendrame at 2025-01-28T16:40:39+01:00
    fixup! Firefox preference overrides.
    
    BB 43236: Disable vsync on Wayland.
    
    Vsync leaks the monitor refresh rate, therefore it is already disabled
    on other platforms, including Linux/X11 and Windows.
    

2 changed files:

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);
    
    ... ... @@ -466,6 +475,8 @@ pref("pdfjs.disabled", false, locked);
    466 475
     #endif
    
    467 476
     // Bug 40057: Ensure system colors are not used for CSS4 colors
    
    468 477
     pref("browser.display.use_system_colors", false);
    
    478
    +// tor-browser#43236: Disable vsync on Wayland to prevent refresh rate leaks.
    
    479
    +pref("widget.wayland.vsync.enabled", false);
    
    469 480
     
    
    470 481
     // tor-browser#41943: defense-in-depth, but do not lock anymore (enabled in Firefox 119, http://bugzil.la/1851162)
    
    471 482
     pref("_javascript_.options.spectre.disable_for_isolated_content", false);
    

  • netwerk/protocol/http/nsHttpHandler.cpp
    ... ... @@ -867,7 +867,7 @@ void nsHttpHandler::BuildUserAgent() {
    867 867
       mUserAgent += '/';
    
    868 868
       mUserAgent += mProductSub;
    
    869 869
     
    
    870
    -  bool isFirefox = mAppName.EqualsLiteral("Firefox");
    
    870
    +  bool isFirefox = true;
    
    871 871
       if (isFirefox || mCompatFirefoxEnabled) {
    
    872 872
         // "Firefox/x.y" (compatibility) app token
    
    873 873
         mUserAgent += ' ';
    

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