Last modified: 2011-12-02 23:47:34 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
Was discussed on wikitech-l recently, notably http://lists.wikimedia.org/pipermail/wikitech-l/2011-July/054258.html
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.
(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.
Just testing Bugzilla tools (not the spammer)
*** This bug has been marked as a duplicate of bug 25932 ***