Merge lp:~daker/webbrowser-app/fix.1248728-2 into lp:webbrowser-app

Proposed by Adnane Belmadiaf
Status: Needs review
Proposed branch: lp:~daker/webbrowser-app/fix.1248728-2
Merge into: lp:webbrowser-app
Diff against target: 9 lines (+1/-0)
1 file modified
src/Ubuntu/Web/ua-overrides-mobile.js (+1/-0)
To merge this branch: bzr merge lp:~daker/webbrowser-app/fix.1248728-2
Reviewer Review Type Date Requested Status
Ubuntu Phablet Team Pending
Review via email: mp+223171@code.launchpad.net

Commit message

Fixed UA override for G+

To post a comment you must log in.
Revision history for this message
dobey (dobey) wrote :

This doesn't actually fix bug #1328183 here. It only changes the agent for plus.google.com but not other sites, so one will still see many ads for using an Android app, instead of just having the mobile sites work.

Revision history for this message
Adnane Belmadiaf (daker) wrote :

I doesn't fix the bug for sure, but i am trying to get the right UA for the webapps we ship so they will not show Android Ads.

Revision history for this message
dobey (dobey) wrote :

> I doesn't fix the bug for sure, but i am trying to get the right UA for the
> webapps we ship so they will not show Android Ads.

Shouldn't that be fixed in the webapps directly, rather than having a very large list of hard-coded URLs to modify the UA for in different ways, in the browser itself?

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

> > I doesn't fix the bug for sure, but i am trying to get the right UA for the
> > webapps we ship so they will not show Android Ads.
>
> Shouldn't that be fixed in the webapps directly, rather than having a very
> large list of hard-coded URLs to modify the UA for in different ways, in the
> browser itself?

Yes, indeed. Unfortunately we don’t have a mechanism for webapps to specify a custom UA string yet.

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

> > Shouldn't that be fixed in the webapps directly, rather than having a very
> > large list of hard-coded URLs to modify the UA for in different ways, in the
> > browser itself?
>
> Yes, indeed. Unfortunately we don’t have a mechanism for webapps to specify a
> custom UA string yet.

Filed bug #1370975 to track that issue.

Unmerged revisions

569. By Adnane Belmadiaf

Fixed UA override for G+

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/Ubuntu/Web/ua-overrides-mobile.js'
2--- src/Ubuntu/Web/ua-overrides-mobile.js 2014-06-09 10:44:22 +0000
3+++ src/Ubuntu/Web/ua-overrides-mobile.js 2014-06-15 14:40:38 +0000
4@@ -21,4 +21,5 @@
5 var overrides = [
6 [/^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"],
7 [/^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
8+ [/^https?:\/\/plus\.google\.com\//, "Mozilla/5.0 (Mobile; Firefox) AppleWebKit/537.36"], // http://pad.lv/1248728
9 ];

Subscribers

People subscribed via source and target branches

to status/vote changes: