Add the ability to include the device product name in the user agent string

Bug #1373571 reported by Pat McGowan
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
webbrowser-app (Ubuntu)
Triaged
High
Unassigned

Bug Description

In order to be well supported in the wurfl database we would like to include a product name in the string. This is used as a key to ascertain capabilities.

Our default UA already has a placeholder for a device ID, which by default is empty. What we’re missing is a mechanism to expose the actual device ID to QML.

We would need to do additional testing to ensure the addition does not adversely affect results.

Revision history for this message
Olivier Tilloy (osomon) wrote :

As explained in the description, the default UA already has an empty placeholder for a device ID. What’s left to do is:
 a) understand exactly what should be such a device ID
 b) compute it at run time and expose it to the browser QML plugin

b should be fairly trivial to implement once a is well understood.

Pat, any idea what a typical device ID would look like, and how to compute it at run time?

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

Some examples:

Chrome for ios
Mozilla/5.0 (iPhone; U; CPU iPhone OS 5_1_1 like Mac OS X; en) AppleWebKit/534.46.0 (KHTML, like Gecko) CriOS/19.0.1084.60 Mobile/9B206 Safari/7534.48.3

Random Android:
Mozilla/5.0 (Linux; U; Android 4.0.3; de-ch; HTC Sensation Build/IML74K) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
Mozilla/5.0 (Linux; U; Android 2.2; en-sa; HTC_DesireHD_A9191 Build/FRF91) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
Mozilla/5.0 (Linux; U; Android 1.6; ar-us; SonyEricssonX10i Build/R2BA026) AppleWebKit/528.5+ (KHTML, like Gecko) Version/3.1.2 Mobile Safari/525.20.1

Blackberry:
Mozilla/5.0 (BlackBerry; U; BlackBerry 9900; en) AppleWebKit/534.11+ (KHTML, like Gecko) Version/7.1.0.346 Mobile Safari/534.11+

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

We can use the Android property ro.product.model

Olivier Tilloy (osomon)
Changed in webbrowser-app:
status: New → Triaged
Olivier Tilloy (osomon)
Changed in webbrowser-app (Ubuntu):
assignee: nobody → Olivier Tilloy (osomon)
importance: Undecided → High
status: New → Triaged
Changed in webbrowser-app:
status: Triaged → Invalid
assignee: Olivier Tilloy (osomon) → nobody
Olivier Tilloy (osomon)
no longer affects: webbrowser-app
Revision history for this message
Ferry Toth (ftoth) wrote :

In OTA 13 the current settings cause www.blendle.com to show a 'invalid browser' page. This is a regression compared to a previous version (can't remember when this worked).

This web site works with android's browser and even with sailfish.

Olivier Tilloy (osomon)
Changed in webbrowser-app (Ubuntu):
assignee: Olivier Tilloy (osomon) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.