Merge lp:~bfiller/webbrowser-app/fix-1227941 into lp:webbrowser-app
Status: | Merged |
---|---|
Approved by: | Bill Filler |
Approved revision: | 346 |
Merged at revision: | 349 |
Proposed branch: | lp:~bfiller/webbrowser-app/fix-1227941 |
Merge into: | lp:webbrowser-app |
Prerequisite: | lp:~osomon/webbrowser-app/ua-override-domains |
Diff against target: |
17 lines (+2/-0) 1 file modified
src/Ubuntu/Components/Extras/Browser/ua-overrides.js (+2/-0) |
To merge this branch: | bzr merge lp:~bfiller/webbrowser-app/fix-1227941 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot | continuous-integration | Approve | |
Bill Filler (community) | Approve | ||
Olivier Tilloy | Approve | ||
Review via email: mp+187643@code.launchpad.net |
Commit message
add user-agent override for mail.google.com
Description of the change
add an user-agent override for mail.google.com such that gmail renders correctly like it does on android and iphone. Note, we only want to apply this override specifically for mail.google.com so this other MR is a prerequiste:
https:/
also note that we only want this override for mobile, not desktop, and that is the reason for the mobile substituion rather than a complete string override. Maybe there is an easier way using regexp but I didn't know how to do it.
Basically the default string is this:
Mozilla/5.0 (Ubuntu; Mobile) WebKit/537.21
And this is required for mail.google.com:
"Mozilla/5.0 (Ubuntu; Linux; Android 4.2.2) AppleWebKit/537.21 Mobile Safari/537.21"
Hence my replacement of "Mobile) WebKit/537.21" with "Linux; Android 4.2.2) AppleWebKit/537.21 Mobile Safari/537.21"
PASSED: Continuous integration, rev:345 jenkins. qa.ubuntu. com/job/ webbrowser- app-ci/ 404/ jenkins. qa.ubuntu. com/job/ generic- mediumtests- saucy/4026 jenkins. qa.ubuntu. com/job/ generic- mediumtests- touch/1636 jenkins. qa.ubuntu. com/job/ webbrowser- app-saucy- amd64-ci/ 287 jenkins. qa.ubuntu. com/job/ webbrowser- app-saucy- armhf-ci/ 287 jenkins. qa.ubuntu. com/job/ webbrowser- app-saucy- armhf-ci/ 287/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ webbrowser- app-saucy- i386-ci/ 287 jenkins. qa.ubuntu. com/job/ autopilot- testrunner- otto-saucy/ 339 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- saucy-i386/ 4119 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- saucy-i386/ 4119/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- saucy-armhf/ 1638 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- saucy-armhf/ 1638/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ generic- mediumtests- runner- maguro/ 1374 jenkins. qa.ubuntu. com/job/ generic- mediumtests- runner- mako/1386
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins: 8080/job/ webbrowser- app-ci/ 404/rebuild
http://