GSoC/GCI Archive
Google Code-in 2013 Wikimedia

MobileFrontend: 'Desktop' link requires cookies

completed by: Theo Patt

mentors: Jon Robson

The MobileFrontend extension has this problem that you could fix:

When browsing Wikipedia using a browser without cookies enabled e.g. https://github.com/guardianproject/Orweb,
clicking on the 'Desktop' link causes the mobile page to reload - it does not
load the desktop site.
A first step would involve:
In beta when I don't have cookies enabled and click 'desktop link', I get an
alert saying "Cookies are needed to switch to desktop mode." and remain on the
page

(window.alert is the easiest thing to do right now but when we have a proof of
concept we can explore how we might inform the user to enable cookies)

Read this bug report through for more information:
Bug 51277 - 'Desktop' link requires cookies

Please ask any questions in the bug report, where more community contributors will might able to help.

Students are required to read Wikimedia's general instructions first. Patches should be submitted to Gerrit and reference the bug report in the commit message. Ideally the solution should be added to the beta mode of the MobileFrontend extension to allow testing and quicker merging, repository maintainers can help with this during the code review process.