Skip to content
Snippets Groups Projects
Commit 5d334253 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame :jack_o_lantern: Committed by Beatriz Rizental
Browse files

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".
parent 45ea9f6f
No related branches found
No related tags found
1 merge request!1507Rebase Tor Browser onto 136.0a1
......@@ -953,7 +953,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 += ' ';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment