Last Comment Bug 801614 - navigator.platform returns '' on Gonk
: navigator.platform returns '' on Gonk
Product: Firefox OS
Classification: Client Software
Component: General (show other bugs)
: unspecified
: ARM Gonk (Firefox OS)
-- normal (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
Depends on:
  Show dependency treegraph
Reported: 2012-10-15 06:41 PDT by Vivien Nicolas (:vingtetun) (:21) - (NOT reading bugmails, needinfo? please)
Modified: 2013-12-31 17:04 PST (History)
7 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---


Description User image Vivien Nicolas (:vingtetun) (:21) - (NOT reading bugmails, needinfo? please) 2012-10-15 06:41:54 PDT

Comment 1 User image Boris Zbarsky [:bz] (still a bit busy) 2012-10-15 06:53:35 PDT
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?
Comment 2 User image Gervase Markham [:gerv] 2012-10-16 03:29:16 PDT
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?)

Comment 3 User image Lawrence Mandel [:lmandel] (use needinfo) 2012-10-16 07:19:16 PDT
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.

Note You need to log in before you can comment on or make changes to this bug.