Degraded version of mobile.twitter.com with the default UA

Bug #1233270 reported by Omer Akram
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
webbrowser-app
Fix Released
Medium
Olivier Tilloy
webbrowser-app (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

1. open the browser and open twitter.com
2. note the html site.

ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: webbrowser-app 0.22+13.10.20130926.1-0ubuntu1
Uname: Linux 3.4.0-3-mako armv7l
ApportVersion: 2.12.5-0ubuntu1
Architecture: armhf
Date: Mon Sep 30 16:23:11 2013
InstallationDate: Installed on 2013-09-29 (1 days ago)
InstallationMedia: Ubuntu Saucy Salamander (development branch) - armhf (20130929)
MarkForUpload: True
ProcEnviron:
 TERM=linux
 PATH=(custom, no user)
SourcePackage: webbrowser-app
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
Omer Akram (om26er) wrote :
Changed in webbrowser-app (Ubuntu):
importance: Undecided → Medium
Changed in webbrowser-app:
importance: Undecided → Medium
assignee: nobody → Olivier Tilloy (osomon)
summary: - twitter.com does not loads in plain html
+ twitter.com does loads in plain html
Revision history for this message
Olivier Tilloy (osomon) wrote : Re: twitter.com does loads in plain html

This is not "plain html", this is rather a degraded version that twitter.com serves us based on the user-agent string.
Let’s use the UA override mechanism to send it a UA string that will get us shiny touch content.

Changed in webbrowser-app (Ubuntu):
status: New → Confirmed
Changed in webbrowser-app:
status: New → Confirmed
Revision history for this message
Olivier Tilloy (osomon) wrote :

Compared to mobile.twitter.com in Chrome on Android, the version we’re getting on Ubuntu Touch is indeed less shiny, however it seems to be fully functional. The problem with impersonating Android is that we will get intrusive popups offering to install the Android application.

summary: - twitter.com does loads in plain html
+ Degraded version of mobile.twitter.com with the current UA
summary: - Degraded version of mobile.twitter.com with the current UA
+ Degraded version of mobile.twitter.com with the default UA
Changed in webbrowser-app:
assignee: Olivier Tilloy (osomon) → nobody
Revision history for this message
Adnane Belmadiaf (daker) wrote :

This version is functional but not usable for a touch experience, the links are too small.

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

The following User-Agent string override gets us the desired result:

    "twitter.com": ["Mobile", "Android 4; Mobile"],

However, this means we’re also getting popups in-app suggesting installing the native android application :/
See attached screenshot.
In the end, it’s a trade-off between usability and communication. And of course, we should get in touch with the guys at twitter to do some evangelism and convince them that our default UA string is a good candidate for modern, touch-enabled content.

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

and if you are not logged you get this big thing that invites you to download the app for both Android & iphone

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

It appears that Canonical is in discussions with Twitter and the plan is to enable our default UA string on their servers in order to send us modern, touch-enabled content.

Until then, we’ll have to live with the degraded version we’re currently getting.

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

>>The following User-Agent string override gets us the desired result:

>> "twitter.com": ["Mobile", "Android 4; Mobile"],

>>However, this means we’re also getting popups in-app suggesting installing the native android application :/
>>See attached screenshot.
>>In the end, it’s a trade-off between usability and communication. And of course, we should get in touch with the guys at twitter to >>do some evangelism and convince them that our default UA string is a good candidate for modern, touch-enabled content.

Lets make this change please. We're using Android string for other sites as well. In parallel we can work with Twitter on having them support our default UA String.

Olivier Tilloy (osomon)
Changed in webbrowser-app:
assignee: nobody → David Barth (dbarth)
status: Confirmed → In Progress
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:webbrowser-app at revision 368, scheduled for release in webbrowser-app, milestone ubuntu-13.04-month-5

Changed in webbrowser-app:
status: In Progress → Fix Committed
Omer Akram (om26er)
tags: added: rls-s-incoming
Revision history for this message
Adnane Belmadiaf (daker) wrote :

Just want to let you know that twitter serves the right version for FF OS without any ads for other platforms, twitter will look for the string "Firefox", here is the override rule :

"twitter.com": ["Mobile", "Mobile) Firefox"],

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

Very good point, thanks Adnane for the suggestion. The override has to be ["Mobile)", "Mobile) Firefox"] for it to work though.

Changed in webbrowser-app:
status: Fix Committed → In Progress
assignee: David Barth (dbarth) → Olivier Tilloy (osomon)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:webbrowser-app at revision 374, scheduled for release in webbrowser-app, milestone ubuntu-13.04-month-5

Changed in webbrowser-app:
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package webbrowser-app - 0.22+13.10.20131007.2-0ubuntu1

---------------
webbrowser-app (0.22+13.10.20131007.2-0ubuntu1) saucy; urgency=low

  [ Alexandre Abreu ]
  * Handle URL open requests and expose a org.freedesktop.Application
    interface on DBUS. (LP: #1230404)

  [ David Barth ]
  * UA overrides for google domains, youtube, twitter. Also
    login.ubuntu.com. (LP: #1233270)

  [ Olivier Tilloy ]
  * Hide the activity view when validating the address bar. (LP:
    #1234843)
  * Reverted revision 343: now all domains expand consistently in the
    activity view, even if they contain only one entry. (LP: #1235137)
  * Better UA override rule for mobile twitter (don’t pretend to be an
    android). Thanks Adnane Belmadiaf for the tip!. (LP: #1233270)
  * Fix the height of the webview container when in landscape
    orientation. (LP: #1235328, #1234949)

  [ Ubuntu daily release ]
  * Automatic snapshot from revision 376
 -- Ubuntu daily release <email address hidden> Mon, 07 Oct 2013 21:30:43 +0000

Changed in webbrowser-app (Ubuntu):
status: Confirmed → Fix Released
Olivier Tilloy (osomon)
Changed in webbrowser-app:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers