wiki.techinc.nl/includes/ResourceLoader
Timo Tijhof c7ee0dbf96 ResourceLoader: Document the clientPrefs system and make Skin option
Move parts of implementation code comments into something that is
discoverable and understable to a general audience of MW core and skin
developers (not hidden in code mostly seen by maintainers
and contributors to ResourceLoader internals).

Most notably, that the system is turned off by default (and how to
turn it on), that it is limited to requests by unregistered users,
and that the class must follow a certain pattern.

$wgResourceLoaderClientPreferences is removed as part of this.

This is not considered a breaking change as the feature is now
automatically on in the skins needs it (via skin.json), and previously
it was marked experimental and off by default.

Skins are naturally required to have knowledge of this system, as they
need to call into it to persist classes for feature toggles. By removing
the need to also enable it at the site-level we get a few benefits:

1) make skins like Vector easier to correctly install and configure.
2) ease maintenance for skin devs by removing the need to manually
   export and check $wgResourceLoaderClientPreferences before calling
   mw.user.clientPrefs or otherwise hinting in UI or docs that the
   feature persists when it might not be turned on on a given MW site
   or WMF wiki.
3) ease browser testing in CI.

Bug: T344069
Depends-On: If9b83dd559cda2dac315afcb65a4761b9e97f319
Change-Id: Ib0b5ee29ec7accb7b291830d2ab6566fe4f4c0c5
2023-08-18 13:32:01 -07:00
..
dependencystore Replace IDatabase::delete with DeleteQueryBuilder 2023-06-21 17:50:31 +02:00
Hook
CircularDependencyError.php
ClientHtml.php ResourceLoader: Document the clientPrefs system and make Skin option 2023-08-18 13:32:01 -07:00
CodexModule.php
Context.php
DerivativeContext.php
FileModule.php ResourceLoader: deliver deprecation warnings as strings 2023-08-03 14:10:16 +10:00
FilePath.php
ForeignApiModule.php
ForeignResourceManager.php
HookRunner.php
Image.php Replace array_keys in foreach to use $_ as value instead 2023-07-10 02:53:52 +00:00
ImageModule.php ResourceLoaderImageModule::getCssDeclarations: Tweak doc explanation 2023-07-13 10:28:13 -04:00
LessVarFileModule.php
MessageBlobStore.php Avoid DB access in non-database tests 2023-08-06 22:57:48 +00:00
Module.php ResourceLoader: wrap module definitions in functions 2023-08-11 00:36:52 +00:00
MwUrlModule.php
OOUIFileModule.php
OOUIIconPackModule.php Replace array_keys in foreach to use $_ as value instead 2023-07-10 02:53:52 +00:00
OOUIImageModule.php
OOUIModule.php
ResourceLoader.php ResourceLoader: Completely remove FileCache 2023-08-11 13:50:41 +02:00
SiteModule.php
SiteStylesModule.php
SkinModule.php Add a config to stop shipping the legacy media styles 2023-07-12 18:32:31 -04:00
StartUpModule.php ResourceLoader: wrap module definitions in functions 2023-08-11 00:36:52 +00:00
UserModule.php
UserOptionsModule.php
UserStylesModule.php
VueComponentParser.php
WikiModule.php Database: support passing an IReadableDatabase to getCacheSetOptions 2023-06-09 10:46:03 +03:00