If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

navigator.userAgent says "Linux" rather than "Android"

RESOLVED WORKSFORME

Status

()

Firefox for Android
General
RESOLVED WORKSFORME
3 years ago
a year ago

People

(Reporter: jsp, Unassigned)

Tracking

32 Branch
ARM
Android
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

3 years ago
Created attachment 8484332 [details]
Simple user agent test.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Gecko_user_agent_string_reference#Android says that the user agent string should include "Android" on Android devices.

Steps to reproduce:
1. Run the attached test page on an Android device.

Expected results:
The user agent string includes "Android".

Actual results:
On my Nexus 7 with Fx 32, the user agent is "Mozilla/5.0 (X11; Linux x86_64; rv: 19.0) Gecko/20100101 Firefox/19.0".  This is astonishing on three counts: OS, X11, and 19.0.  (Maybe that's the UA string for the build machine?)
No Phony (UA Switcher) add-on installed, right? Tools -> Add-ons

On my Nexus 7 (2013), Firefox 32 my default UA is: Mozilla/5.0 (Android; Tablet; rv:32.0) Gecko/32.0 Firefox/32.0
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → WORKSFORME
https://addons.mozilla.org/en-US/android/files/browse/194820/file/bootstrap.js#L74

Matches that UA with Phony.
You need to log in before you can comment on or make changes to this bug.