https://bugzilla.wikimedia.org/show_bug.cgi?id=38009
--- Comment #16 from Arthur Richards <[email protected]> 2012-08-17 16:17:54 UTC --- Mark, thanks for taking a crack at it! What I can tell you real quick now is that there is already good cookie setting/unsetting code in PHP in MobileFrontend, as well as in some Javascript which loads only for the mobile version of the site. The problem is, due to the cluster's caching infrastructure, there are issues unsetting the stopMobileRedirect cookie on the server side (in PHP). We should instead take the solution you refined in common.js on en.wikipedia and have MobileFrontend load that bit of javascript on the desktop version of the site. This will require using resource loader (http://www.mediawiki.org/wiki/ResourceLoader) and ensuring that it only gets loaded for non-mobile page views. It's not very clear in the code, but the decision about whether or not to show the mobile version of the site gets made in ExtMobileFrontend::requestContextCreateSkin(). I hope that's enough to get you started - I'll help dig in deeper later when I have some more time, likely this weekend or early next week. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
