Page MenuHomePhabricator

Add support for 'skinScripts' in extension.json and skin.json
Open, HighPublic

Description

ResourceLoader supports skinStyles and a lesser known skinScripts.

For skinStyles, the the ResourceModuleSkinStyles attribute can be used by skins in skin.json to specify skins to add to existing modules, however there is no equivalent for skinScripts (e.g. "ResourceModuleSkinScripts")

Note: See T251957 - it's likely skinScripts would not have any impact on modules using packageFiles.

Event Timeline

Krinkle renamed this task from Add support for ResourceLoaderScriptModule in extension.json and skin.json to Add support for 'skinStyles' in extension.json and skin.json.May 11 2020, 5:14 PM
Krinkle updated the task description. (Show Details)
Krinkle updated the task description. (Show Details)
Krinkle renamed this task from Add support for 'skinStyles' in extension.json and skin.json to Add support for 'skinScripts' in extension.json and skin.json.May 11 2020, 5:17 PM
Krinkle updated the task description. (Show Details)
Krinkle subscribed.

I've removed the workaround from the task description as that is not acceptable production code, in case someone finds it as example without the necessary context.

I've removed the workaround from the task description as that is not acceptable production code, in case someone finds it as example without the necessary context.

Rather than remove it, it might make sense to restore it but make clear that's unacceptable so there's no room for interpretation :).