https://bugzilla.wikimedia.org/show_bug.cgi?id=51277

Theopolisme <theopolismew...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |theopolismew...@gmail.com

--- Comment #10 from Theopolisme <theopolismew...@gmail.com> ---
It's quite trivial to do this check via JavaScript in the desktopViewClick
handler (I just created M.settings.cookiesEnabled which sets a cookie, checks
its existence, then deletes if success) and that works fine. But what happens
when a user doesn't have JavaScript *or* cookies? How does one alert them then?

It seems like it would require some sort of intermediate special page (e.g.
Special:SwitchViewMode or whatever) that would try something like the
following:

* If client has JavaScript enabled:
  * Check using JavaScript if cookies are supported
  * If they are, redirect to the mobileaction url
* If client does not have JavaScript:
  * Check if cookies are available through serverside methods*
  * If so, redirect to mobileaction url
* When at any point in this process we realize that cookies are not available,
display a message that essentially says "Cookies are required to switch to the
desktop site. Please enable them and try again."

Does this sound sane? Any better ideas?

*setting temporary cookie and then reloading + checking if cookie is set, in a
simplified nutshell

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to