browser needs its own UA string
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
webbrowser-app |
Fix Released
|
High
|
Olivier Tilloy | ||
webbrowser-app (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
Actually the browser uses the iPhone user-agent which is not really a good idea, because most of webapps/websites will try to get users to download there iOS apps using popups & wrong links to itunes, we should try to find out the best combination, here are some UA examples :
Firefox for Android:
Mozilla/5.0 (Android; Mobile; rv:13.0) Gecko/13.0 Firefox/13.0
Mozilla/5.0 (Android; Tablet; rv:13.0) Gecko/13.0 Firefox/13.0
iPhone:
Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25
Android:
Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/
Blackberry 10:
Mozilla/5.0 (BB10; <Device Model>) AppleWebKit/<WebKit Version> (KHTML, like Gecko) Version/<BB Version #> Mobile Safari/<WebKit Version>
Related branches
- PS Jenkins bot: Approve (continuous-integration)
- Günter Schwann (community): Approve
-
Diff: 347 lines (+263/-27)5 files modifiedsrc/Ubuntu/Components/Extras/Browser/UbuntuWebView.qml (+7/-26)
src/Ubuntu/Components/Extras/Browser/UserAgent.qml (+80/-0)
src/Ubuntu/Components/Extras/Browser/ua-overrides.js (+96/-0)
tests/unittests/qml/CMakeLists.txt (+9/-1)
tests/unittests/qml/tst_UserAgent.qml (+71/-0)
Changed in webbrowser-app: | |
importance: | Undecided → High |
status: | New → Confirmed |
description: | updated |
Changed in webbrowser-app (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in webbrowser-app: | |
status: | Confirmed → In Progress |
Changed in webbrowser-app: | |
status: | Fix Committed → Fix Released |
How about
Mozilla/5.0 (UbuntuTouch; Galaxy Nexus) AppleWebKit/534.46 (KHTML, like Gecko) Version/1.0 Mobile Safari/534.46
With the Webkit version reflecting what is actually included, and the device is taken from the environment