Last modified: 2014-10-02 18:47:27 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 T68888, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66888 - iPad tablet to mobile redirect not working (cookie or cache-related?)
iPad tablet to mobile redirect not working (cookie or cache-related?)
Status: RESOLVED FIXED
Product: MobileFrontend
Classification: Unclassified
stable (Other open bugs)
unspecified
Tablet PC other
: Unprioritized normal
: ---
Assigned To: Max Semenik
https://www.wikipedia.org/
:
Depends on:
Blocks: 65047
  Show dependency treegraph
 
Reported: 2014-06-20 20:18 UTC by Brion Vibber
Modified: 2014-10-02 18:47 UTC (History)
6 users (show)

See Also:
Web browser: Apple Safari
Mobile Platform: iOS 7.x
Assignee Huggle Beta Tester: ---


Attachments

Description Brion Vibber 2014-06-20 20:18:01 UTC
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
Comment 1 Brion Vibber 2014-06-20 20:28:46 UTC
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	✓
Comment 2 Bingle 2014-06-20 22:35:16 UTC
Prioritization and scheduling of this bug is tracked on Trello card https://trello.com/c/BXMQWUIf
Comment 3 Gerrit Notification Bot 2014-06-21 01:52:46 UTC
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
Comment 4 Gerrit Notification Bot 2014-06-23 21:25:23 UTC
Change 141102 merged by jenkins-bot:
Fix stopMobileRedirect cookie being set twice with different prefixes

https://gerrit.wikimedia.org/r/141102
Comment 5 Gerrit Notification Bot 2014-06-23 21:26:48 UTC
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
Comment 6 Gerrit Notification Bot 2014-06-23 21:27:19 UTC
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
Comment 7 Gerrit Notification Bot 2014-06-23 21:27:44 UTC
Change 141580 merged by jenkins-bot:
Fix stopMobileRedirect cookie being set twice with different prefixes

https://gerrit.wikimedia.org/r/141580
Comment 8 Gerrit Notification Bot 2014-06-23 21:28:25 UTC
Change 141581 merged by jenkins-bot:
Fix stopMobileRedirect cookie being set twice with different prefixes

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

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


Navigation
Links