Last modified: 2011-12-02 23:47:34 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T31952, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 29952 - Galaxy S2/Android/Firefox not automatically redirected to en.m.wikipedia.org
Galaxy S2/Android/Firefox not automatically redirected to en.m.wikipedia.org
Status: RESOLVED DUPLICATE of bug 25932
Product: Wikimedia Mobile
Classification: Unclassified
devices (Other open bugs)
.5
Other Linux
: High normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 25932
Blocks:
  Show dependency treegraph
 
Reported: 2011-07-18 16:14 UTC by Axel Boldt
Modified: 2011-12-02 23:47 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Axel Boldt 2011-07-18 16:14:10 UTC
We are talking about a Galaxy S2 phone running Android 2.3.3 and mobile Firefox 6. When accessing en.wikipedia.org, it doesn't get automatically redirected to en.m.wikipedia.org. (I was not logged into Wikipedia at the time.) I tried http://en.wikipedia.org/wiki/Wikipedia:Enable_mobile_version without success.

User-agent: Mozilla/5.0 (Android; Linux armv7l; rv:6.0) Gecko/20110713 Firefox/6.0 Fennec/6.02011-07-17 14:50:19
Comment 1 Max Semenik 2011-07-18 16:16:29 UTC
Was discussed on wikitech-l recently, notably http://lists.wikimedia.org/pipermail/wikitech-l/2011-July/054258.html
Comment 2 Brion Vibber 2011-07-19 00:07:25 UTC
Short answer: Firefox for Android's user-agent string doesn't distinguish between 'mobile phone' and larger-screen devices, eg 'tablet', where we prefer to show the full site by default.

So the current redirection script that checks user-agent can't determine if it should redirect or not, and the faster server-side redirection being put in place won't be able to handle this in any way unless future versions of Firefox for Android send some sort of HTTP header data to distinguish phones from tablets/netbooks/laptops.

As a temporary workaround, I propose updating the client-side JavaScript redirector to use CSS media queries or such to detect very-small-screen Firefox  and do the redirection then; the faster server-side user-agent can still work for other browsers.
Comment 3 Tomasz Finc 2011-07-19 00:29:44 UTC
(In reply to comment #2)
> Short answer: Firefox for Android's user-agent string doesn't distinguish
> between 'mobile phone' and larger-screen devices, eg 'tablet', where we prefer
> to show the full site by default.
> 
> So the current redirection script that checks user-agent can't determine if it
> should redirect or not, and the faster server-side redirection being put in
> place won't be able to handle this in any way unless future versions of Firefox
> for Android send some sort of HTTP header data to distinguish phones from
> tablets/netbooks/laptops.
> 
> As a temporary workaround, I propose updating the client-side JavaScript
> redirector to use CSS media queries or such to detect very-small-screen Firefox
>  and do the redirection then; the faster server-side user-agent can still work
> for other browsers.

And its still the same with all newer firefox builds. Patrick, Axel, and I chatted on #wikimedia-mobile and eventually came up with the same conclusion of css media queries. Thanks for detailed write up Brion. Its important to capture our thoughts not only on irc but also in bugzilla.
Comment 4 Brion Vibber 2011-11-25 22:31:14 UTC
Just testing Bugzilla tools (not the spammer)
Comment 5 Brion Vibber 2011-12-02 23:47:34 UTC

*** This bug has been marked as a duplicate of bug 25932 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links