Merge lp:~osomon/webbrowser-app/youtube-ua-override into lp:webbrowser-app

Proposed by Olivier Tilloy
Status: Merged
Approved by: Bill Filler
Approved revision: 556
Merged at revision: 559
Proposed branch: lp:~osomon/webbrowser-app/youtube-ua-override
Merge into: lp:webbrowser-app
Diff against target: 9 lines (+1/-0)
1 file modified
src/Ubuntu/Components/Extras/Browser/ua-overrides-mobile.js (+1/-0)
To merge this branch: bzr merge lp:~osomon/webbrowser-app/youtube-ua-override
Reviewer Review Type Date Requested Status
David Barth (community) Approve
PS Jenkins bot continuous-integration Needs Fixing
Review via email: mp+222015@code.launchpad.net

Commit message

Add a UA override rule for m.youtube.com to allow playing videos.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
David Barth (dbarth) wrote :

Works well

review: Approve
Revision history for this message
Bill Filler (bfiller) wrote :

works, should we consider adding the trailing semi colon to the default UA string?

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

I wouldn’t do that, as other sites/apps parsing the UA string might consider it malformed.
I think it makes sense to use a specific override for this case.

Note that the way the default UA is built, it allows for a device ID token (which, if not empty, will be inserted before the closing parenthesis, with a leading semi-colon).

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/Ubuntu/Components/Extras/Browser/ua-overrides-mobile.js'
2--- src/Ubuntu/Components/Extras/Browser/ua-overrides-mobile.js 2014-04-14 08:12:30 +0000
3+++ src/Ubuntu/Components/Extras/Browser/ua-overrides-mobile.js 2014-06-04 11:30:06 +0000
4@@ -20,4 +20,5 @@
5
6 var overrides = [
7 [/^https?:\/\/mail\.google\.com\//, "Mozilla/5.0 (Linux; Ubuntu 14.04 like Android 4.4) AppleWebKit/537.36 Chromium/35.0.1870.2 Mobile Safari"],
8+ [/^https?:\/\/m\.youtube\.com\//, "Mozilla/5.0 (Linux; Ubuntu 14.04 like Android 4.4;) AppleWebKit/537.36 Chromium/35.0.1870.2 Mobile Safari/537.36"], // http://pad.lv/1228415
9 ];

Subscribers

People subscribed via source and target branches

to status/vote changes: