[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] BB 43386: Use Firefox in the UA in RFP-exempt request.



Title: GitLab

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

Commits:

  • 6702da42
    by Pier Angelo Vendrame at 2025-01-14T12:56:03+00:00
    BB 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".
    

1 changed file:

Changes:

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

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