Page MenuHomePhabricator

Replace jquery.cookie with js-cookie in MediaWiki
Open, Needs TriagePublic

Description

jquery.cookie, which we use for client-side cookie handling in MediaWiki, has been renamed to / replaced with js-cookie in 2015. We should consider upgrading. The syntax is different so we'd have to update all uses of the class (or replace them with our wrapper, mw.cookie).

Event Timeline

Ah, fun; whilst we're at it, we should also mirror any local patches to a .patches file so we can upgrade as needed.

The only local patch is about the samesite attribute, I think, and that's fixed upstream.

Change 655738 had a related patch set uploaded (by Jforrester; owner: Jforrester):
[mediawiki/core@master] [WIP] mediawiki.cookie: Switch to js-cookie from jquery.cookie and deprecate it

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