Page MenuHomePhabricator

iPad tablet to mobile redirect not working (cookie or cache-related?)
Closed, ResolvedPublic

Description

I've been having trouble with my iPad (Safari on iOS 7.1.1) not going over to the mobile site, even when I explicitly opt in to the mobile site. I'm logged in, and while this is a new iPad it's got old cookies from a restored backup of another device that I've used on Wikipedia before.

Will investigate the contents of cookies & localStorage via debugger before trying to clear everything...

Steps to reproduce:

  1. Open Safari and go to https://www.wikipedia.org/ portal
  2. Click "English"
  3. see that I'm on the desktop site, logged in
  4. Click "Mobile view" link to force back to mobile site
  5. Manually go back to https://www.wikipedia.org/
  6. Click "English" again
  7. ...see that I'm on the desktop site again, still logged in

or

  1. Follow above procedure up to getting on English mobile site
  2. Go to a random article
  3. "Read in other languages", pick a language like Czech or Galician
  4. find I'm back on the desktop site in that language

Version: unspecified
Severity: normal
OS: other
Platform: Tablet PC
URL: https://www.wikipedia.org/

Details

Reference
bz66888

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:26 AM
bzimport set Reference to bz66888.

Looking in Safari's debugger, I've got an "enwikistopMobileRedirect" cookie globally on .wikipedia.org :

enwikistopMobileRedirect true .wikipedia.org / July 17, 2014 at 2:04:39 PM PDT 28 B ✓ ✓

It's marked HttpOnly and Secure, so doesn't show up in document.cookie to JS. The date is the expiration date.

Note I also have the forceHTTPS cookie:

forceHTTPS 1 .wikipedia.org / July 17, 2014 at 1:48:05 PM PDT 11 B ✓

bingle-admin wrote:

Prioritization and scheduling of this bug is tracked on Trello card https://trello.com/c/BXMQWUIf

Change 141102 had a related patch set uploaded by MaxSem:
Fix stopMobileRedirect cookie being set twice with different prefixes

https://gerrit.wikimedia.org/r/141102

Change 141102 merged by jenkins-bot:
Fix stopMobileRedirect cookie being set twice with different prefixes

https://gerrit.wikimedia.org/r/141102

Change 141580 had a related patch set uploaded by MaxSem:
Fix stopMobileRedirect cookie being set twice with different prefixes

https://gerrit.wikimedia.org/r/141580

Change 141581 had a related patch set uploaded by MaxSem:
Fix stopMobileRedirect cookie being set twice with different prefixes

https://gerrit.wikimedia.org/r/141581

Change 141580 merged by jenkins-bot:
Fix stopMobileRedirect cookie being set twice with different prefixes

https://gerrit.wikimedia.org/r/141580

Change 141581 merged by jenkins-bot:
Fix stopMobileRedirect cookie being set twice with different prefixes

https://gerrit.wikimedia.org/r/141581