Commit 199865c8 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃 Committed by brizental
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 23165c60
Loading
Loading
Loading
Loading
+1 −1
Changes for netwerk/protocol/http/nsHttpHandler.cpp: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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 += ' ';