Closed Bug 801614 Opened 7 years ago Closed 7 years ago

navigator.platform returns '' on Gonk

Categories

(Firefox OS Graveyard :: General, defect)

ARM
Gonk (Firefox OS)
defect
Not set

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: vingtetun, Unassigned)

Details

Well, what _should_ it return?

What it returns right now is one of a list of hardcoded things based on XP_* ifdefs none of which would apply to Gonk, then falls back on the mOscpu that the HTTP handler provides.  But Gonk happens to ifdef all that code out with MOZ_UA_OS_AGNOSTIC for some reason, so it gets an empty string...

What exactly is the intent of MOZ_UA_OS_AGNOSTIC, and how should it impact navigator.platform?
Component: DOM: Core & HTML → General
Product: Core → Boot2Gecko
Version: Trunk → unspecified
Flags: needinfo?(gerv)
I'm pretty sure that we agreed that '' was the right value to return, given our position on not putting hardware info in the UA string either. See bug 777710, comments 10 to 16.

(Does this bug intentionally not have a comment 0?)

Gerv
Flags: needinfo?(gerv)
Based on Gerv's comment 2, I'm going to resolve this bug as invalid. An empty string is the intended value for navigator.platform on B2G.
Status: NEW → RESOLVED
blocking-basecamp: ? → ---
Closed: 7 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.