Page MenuHomePhabricator

[For action] Gadget developers should replace jquery.cookie with mediawiki.cookie
Open, Needs TriagePublic

Description

https://global-search.toolforge.org/?q=jquery.cookie&regex=1&namespaces=&title=Gadgets-definition

The jquery.cookie library will eventually be removed. It is replaced with mediawiki.cookie (see T271995). Using it will result in the following error in your JavaScript developer console:

This page is using the deprecated ResourceLoader module "jquery.cookie". Merged into "mediawiki.cookie", use that module instead (T271995)

Gadgets should be updated per the warning message.

This impacts 376 scripts (https://global-search.toolforge.org/?q=%5B%22%27%5Djquery%5C.cookie%5B%22%27%5D&regex=1&namespaces=&title=.*%5C.js)

and 71 Gadget definitions files:
https://global-search.toolforge.org/?q=jquery.cookie&regex=1&namespaces=&title=Gadgets-definition

The solution here should be a simple find and replace, replacing jquery.cookie with mediawiki.cookie.

We will run a script to automate this, with some risk, so it is recommended that gadget developers manually upgrade these themselves if they can.

Event Timeline

Jdlrobson renamed this task from Replace jquery.cookie with mediawiki.cookie to [For action] Gadget developers should replace jquery.cookie with mediawiki.cookie.May 4 2023, 11:04 PM
Jdlrobson updated the task description. (Show Details)
Jdlrobson updated the task description. (Show Details)
Izno changed the subtype of this task from "Bug Report" to "Task".May 5 2023, 1:47 AM

@Jdlrobson Is there an estimated timeline for the removal? I'd like to add that as a final contextual sentence. I.e. My current draft:

  • Gadget and userscript developers should replace jquery.cookie with mediawiki.cookie. The jquery.cookie library will be removed in XXXX months.