Page MenuHomePhabricator

Improve deprecated JavaScript console warning messages to include links or copy-pasteable code
Open, Needs TriagePublic

Description

Use of "wgNamespaceNumber" is deprecated. Use mw.config instead.

This isn't really helpful. I'd prefer if the error recommended something like:

Use of "wgNamespaceNumber" is deprecated. Use "mw.config.get( 'wgNamespaceNumber' )" instead.

Or with a message like this:

Use of "addOnloadHook" is deprecated. Use jQuery instead.

Can this include a link? Or perhaps explain what "use jQuery" means?

I think the deprecated JavaScript console warning messages should be generally improved.

Event Timeline

MZMcBride raised the priority of this task from to Needs Triage.
MZMcBride updated the task description. (Show Details)
MZMcBride added a project: JavaScript.
MZMcBride added a subscriber: MZMcBride.
matmarex set Security to None.
matmarex added a subscriber: Krinkle.

Change 312422 had a related patch set uploaded (by Bmansurov):
Output a better deprecated message

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

Change 312422 abandoned by Bmansurov:
Output a better deprecation message for mw.config

Reason:
busy with other stuff

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