Closed Bug 782317 Opened 12 years ago Closed 12 years ago

[AccessFu] appinfo.OS == 'Android' does not always mean Android

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla17

People

(Reporter: eeejay, Assigned: eeejay)

Details

Attachments

(1 file)

Apparently, B2G will also report its OS to be Android, so we should use the build app name instead, 'mobile/android'.
Comment on attachment 651439 [details] [diff] [review]
Change platform conditionals for Android Firefox to "mobile/android".

Review of attachment 651439 [details] [diff] [review]:
-----------------------------------------------------------------

r=me. Do you know specifically why b2g chooses to report Android?
Attachment #651439 - Flags: review?(dbolter) → review+
(In reply to David Bolter [:davidb] from comment #2)
> Comment on attachment 651439 [details] [diff] [review]
> Change platform conditionals for Android Firefox to "mobile/android".
> 
> Review of attachment 651439 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> r=me. Do you know specifically why b2g chooses to report Android?

No, I bet it will eventually be "Gonk", but I think the changes here make sense anyway.
What about this conditional - is it okay to keep using 'Android' here?

if (Utils.OS != 'Android' && !aEvent.shiftKey)
(In reply to David Bolter [:davidb] from comment #4)
> What about this conditional - is it okay to keep using 'Android' here?
> 
> if (Utils.OS != 'Android' && !aEvent.shiftKey)

I think so, since that distinguishes device from desktop testing. BTW, I am doing a gesture rework, so that will end up somewhere else soon anyway.
Assignee: nobody → eitan
https://hg.mozilla.org/mozilla-central/rev/e0876ea69295
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: