Skip to content

Commit

Permalink
Fix useragent
Browse files Browse the repository at this point in the history
  • Loading branch information
K4sum1 committed Feb 1, 2024
1 parent 89f6243 commit 5f7eb5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions browser/branding/r3dfox/LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
These files are under the MPL 2, as below. However, please note that you
are not granted any trademark rights or licenses to the trademarks of the
Mozilla Foundation or any party, including without limitation the
Firefox name or logo.
Eclipse Community or any party, including without limitation the
r3dfox name or logo.

For more information, see: https://www.mozilla.org/foundation/licensing/

Expand Down
4 changes: 2 additions & 2 deletions netwerk/protocol/http/nsHttpHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -789,11 +789,11 @@ void nsHttpHandler::BuildUserAgent() {
mUserAgent += mProductSub;

bool isFirefox = mAppName.EqualsLiteral("Firefox");
if (isFirefox || mCompatFirefoxEnabled) {

// "Firefox/x.y" (compatibility) app token
mUserAgent += ' ';
mUserAgent += mCompatFirefox;
}

if (!isFirefox) {
// App portion
mUserAgent += ' ';
Expand Down

0 comments on commit 5f7eb5e

Please sign in to comment.