Nothing Special   »   [go: up one dir, main page]

Page MenuHomePhabricator

[For action] Gadget developers should replace jquery.cookie with mediawiki.cookie
Closed, ResolvedPublic

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.

Hi !
I just want to add that if you open the Console on Main Page of the French Wikinews, you still get this error/warning :

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

Is the problem patched ? Why is the problem in Archives ?

Hey @Wyslijp16 this appears to relate to CentralNotice extension which still needs to do a release and is nothing to do with French Wikinews so nothing for you to do. Thanks for asking!

Any reason this task is still open?

Jdlrobson claimed this task.