Browser not recognized as mobile browser on multiple sites
Bug #1215002 reported by
Michael Hall
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
webbrowser-app |
Fix Released
|
High
|
Olivier Tilloy | ||
webbrowser-app (Ubuntu) |
Fix Released
|
High
|
Olivier Tilloy |
Bug Description
Recently (as of 2013-08-20 builds) visiting certain sites on my Nexus 4 and Nexus 7 shows a non-mobile-friendly version of the website, or in the case of Google+ refuses to load at all because it doesn't like the browser's identity. See images below.
Related branches
lp:~osomon/webbrowser-app/ua-override-facebook.com
- Bill Filler (community): Approve
- PS Jenkins bot: Approve (continuous-integration)
-
Diff: 9 lines (+1/-0)1 file modifiedsrc/Ubuntu/Components/Extras/Browser/ua-overrides.js (+1/-0)
Changed in webbrowser-app: | |
status: | New → Confirmed |
assignee: | nobody → Olivier Tilloy (osomon) |
Changed in webbrowser-app: | |
importance: | Undecided → High |
Changed in webbrowser-app (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → High |
assignee: | nobody → Olivier Tilloy (osomon) |
Changed in webbrowser-app: | |
status: | Confirmed → In Progress |
Changed in webbrowser-app: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
the user-agent string was recently modified to not use iphone/iphone but instead use
"Mozilla/5.0 (Ubuntu; %1) WebKit/%2"
where
// %1: form factor (Mobile, Tablet, Desktop)
// %2: WebKit version
There are a list of overrides for specific sites found here on the phone: arm-linux- gnueabihf/ qt5/qml/ Ubuntu/ Components/ Extras/ Browser/ ua-overrides. js
/usr/lib/
You can try adding the sites that are having problems to this file, with an Android, iPhone, (or other) override and report back what works best for the sites in question.