Closed Bug 1613290 Opened 6 years ago Closed 6 years ago

Wrong and different userAgent string in navigator.userAgent and useragent headers

Categories

(Core :: Networking: HTTP, defect)

72 Branch
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: mozilla, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0

Steps to reproduce:

  1. Install 72.0.2 (64-bit) firefox on Macos 10.15.3 (19D76)
  2. Synced my firefox account.
  3. Wait for a few minutes for the sync to process
  4. Check about:support - Useraget string is Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Firefox/68.0
  5. Open console and type navigator.userAgent. I am getting the result as
    "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0"

Note that both of these strings identify the browser wrongly. My browser is Firefox V72.0.2 (64 bit) on Macos.

Actual results:

Got wrong useragent string.

Expected results:

Display the correct useragent string
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0

This can happen if you have enabled "Resist Fingerprinting".
This spoofs the user agent to a Firefox ESR version and also places you in the UTC time zone and makes other changes.

You can check this pref on the about:config page:
privacy.resistFingerprinting = false

See:
https://support.mozilla.org/en-US/kb/firefox-protection-against-fingerprinting

If you don't have the have the above preference set, also check for general.useragent.override and look through your list of add-ons for an extension that modifies the user agent string. If you've double-checked neither is the case, feel free to reopen.

Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Component: Untriaged → Networking: HTTP
Product: Firefox → Core
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.