Last modified: 2014-02-12 23:53:59 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 T49586, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 47586 - wgMobileDeviceName is not populated on en.m.wikipedia.org
wgMobileDeviceName is not populated on en.m.wikipedia.org
Status: RESOLVED FIXED
Product: MobileFrontend
Classification: Unclassified
stable (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Jon
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-24 00:22 UTC by Matt Walker
Modified: 2014-02-12 23:53 UTC (History)
9 users (show)

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


Attachments

Description Matt Walker 2013-04-24 00:22:02 UTC
The code mw.config.get( 'wgMobileDeviceName', 'desktop' ) returns "" on en.m.wikipedia.org both logged in and out when using Chrome spoofing as "Android 2.3" and "Android 4.0.2".

It should behave as like test.m.wikipedia.org where the same code returns "android".
Comment 1 Jon 2013-04-24 04:56:00 UTC
the javascript doesn't seem to be varying anymore.

I can't see the vary header being set on the script containing the module mobile.xdevice.detect.script


Look in https://bits.wikimedia.org/m/en.wikipedia.org/load.php?debug=false&lang=en&modules=ext.centralNotice.bannerController.mobile%7Cjquery.client%2Ccookie%2CmwExtension%7Cmediawiki.notify%2Cutil%7Cmediawiki.page.startup%7Cmobile.xdevice.detect.scripts&skin=vector&version=20130424T025129Z&*

for mw.config.set("wgMobileDeviceName"

In mine at least it is being set to empty string. if I make the above url unique (e.g. append &cachebreak=true to url) I see mw.config.set("wgMobileDeviceName","webkit") on chrome as expected.

Css seems to be varying as per normal so that's a relief. The javascript not varying is not the end of the world...
Comment 2 Michelle Grover 2013-04-26 03:10:45 UTC
Assigned Mingle Ticket https://mingle.corp.wikimedia.org/projects/mobile/cards/706
Comment 3 Gerrit Notification Bot 2013-05-02 15:11:38 UTC
Related URL: https://gerrit.wikimedia.org/r/61988 (Gerrit Change Ifbbd97830f0184eb843d616a7d2e70487169155c)
Comment 4 Gerrit Notification Bot 2013-05-02 15:11:56 UTC
Related URL: https://gerrit.wikimedia.org/r/61989 (Gerrit Change If219c84d4755697ab849cfc083fa9234382f30f6)
Comment 5 Jon 2013-05-02 15:12:33 UTC
This code probably makes more sense in CentralNotice on 2nd thoughts.
Comment 6 Jon 2013-05-08 14:24:11 UTC
Note until https://gerrit.wikimedia.org/r/#/c/61989/ is merged there is a potential but highly unlikely race condition which might request a banner for unknown device types such a 'webkit'
Comment 7 Gerrit Notification Bot 2013-05-10 17:58:18 UTC
https://gerrit.wikimedia.org/r/61989 (Gerrit Change If219c84d4755697ab849cfc083fa9234382f30f6) | change APPROVED and MERGED [by awjrichards]

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


Navigation
Links