Please create a client-side script that can detect device features and capabilities

RESOLVED FIXED in 2013-04-04

Status

RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: dbuchner, Assigned: basta)

Tracking

2013-04-04
Points:
---
Dependency tree / graph

Details

(Whiteboard: [fireplace] p=3)

(Reporter)

Description

6 years ago
We need a client-side script that can detect the following data points:

- General device/platform info
  > device model
  > WebRT version
  > OS version

- WebRT API availability

- Screen capabilities
  > resolution
  > physical size
(Assignee)

Updated

6 years ago
Summary: Create a client-side script that can detect app-sensitive features on user devices → Please create a client-side script that can detect device features and capabilities
Who would run this script against the device? And when?
This is part of the planning meeting we had with dbuc.  I filed a tracker at bug 821402
Blocks: 821402
Component: General → Developer Pages
Whiteboard: p=3
(Assignee)

Comment 3

6 years ago
> - General device/platform info
>   > device model

This doesn't appear to be a thing. Do we need this information? I thought we were doing feature sniffing.

>   > WebRT version

Is there an API for this? Is it part of the user agent?

>   > OS version

Same as the above questions.

> - Screen capabilities
>   > resolution

window.screen?

>   > physical size

window.devicePixelRatio?

I don't know if there's an API (or will be an API) to return the physical size of a pixel.
Whiteboard: p=3 → [fireplace] p=3
(Assignee)

Comment 4

6 years ago
bump? We can't make the client-side device profiler work until we have a list of specific things that need to be tested.
this was filed prematurely.  project is currently in product/ux stage
(Reporter)

Comment 6

6 years ago
(In reply to Wil Clouser [:clouserw] from comment #5)
> this was filed prematurely.  project is currently in product/ux stage

I disagree - we know, empirically, most of what we need to capture for the system to operate as desired. UX/UI is downstream from the data-capture requirements. Whatever pretty pictures and user flows UX/UI creates to elicit/display the data is fine, but it does do not dictate what we need to capture - know what I mean?

Let's figure out the ones we know for sure now:

- Privileged API availability (must be checked per API)
- Screen size (for association with general device types)
- Device pixel ratio
- Flash support
- Payments support (carrier)
- What else???
(In reply to Daniel Buchner [:dbuc] from comment #6)
> (In reply to Wil Clouser [:clouserw] from comment #5)
> > this was filed prematurely.  project is currently in product/ux stage
> 
> I disagree - we know, empirically, most of what we need to capture for the
> system to operate as desired. UX/UI is downstream from the data-capture
> requirements. Whatever pretty pictures and user flows UX/UI creates to
> elicit/display the data is fine, but it does do not dictate what we need to
> capture - know what I mean?
> 
> Let's figure out the ones we know for sure now:
> 
> - Privileged API availability (must be checked per API)
> - Screen size (for association with general device types)
> - Device pixel ratio
> - Flash support
> - Payments support (carrier)
> - What else???

Discussions like this don't go well in bugzilla.  This is what the product/PRD stage of a project is for.
Assignee: nobody → mattbasta
(Assignee)

Comment 8

6 years ago
We're now passing the following information to the API:

- Device platform (desktop, android, fxos)
- Wide/narrow screen
- Device profile (API compatibility for non-certified and critical APIs)

https://github.com/mozilla/fireplace/commit/f1cd47d7081ff5e1c64585f1aa5a573c22aff5b6

Chrome has a profile of 3088.22.1.
Firefox Nightly has a profile of 2277237.22.1.

See code for details
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
(Assignee)

Comment 10

6 years ago
you're literally the worst.

https://github.com/mozilla/fireplace/commit/3aa63cea5551e5394ae92964e5d0934167388e38
Status: REOPENED → RESOLVED
Last Resolved: 6 years ago6 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2013-04-04
Blocks: 859511
You need to log in before you can comment on or make changes to this bug.