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


Commits:
25998bbb by Pier Angelo Vendrame at 2025-01-14T12:54:50+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:

- netwerk/protocol/http/nsHttpHandler.cpp


Changes:

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



View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/25998bbbb7c3969168253d5f3e4f1fd40199b88e

-- 
View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/25998bbbb7c3969168253d5f3e4f1fd40199b88e
You're receiving this email because of your account on gitlab.torproject.org.


_______________________________________________
tbb-commits mailing list -- tbb-commits@lists.torproject.org
To unsubscribe send an email to tbb-commits-le...@lists.torproject.org

Reply via email to