wiki.techinc.nl/tests/phpunit/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
..
templates
ClientHtmlTest.php ResourceLoader: Document the clientPrefs system and make Skin option 2023-08-18 13:32:01 -07:00
ContextTest.php tests: Use MainConfigNames consts to refer config names 2023-06-19 20:21:08 +00:00
DerivativeContextTest.php build: Updating mediawiki/mediawiki-codesniffer to 41.0.0 2023-03-11 19:04:09 +00:00
FileModuleTest.php ResourceLoader: deliver deprecation warnings as strings 2023-08-03 14:10:16 +10:00
ImageModuleTest.php ResourceLoader: Remove unused rasterized URL in ImageModule::getCssDeclarations 2023-07-13 01:52:57 +00:00
LessVarFileModuleTest.php
MessageBlobStoreTest.php
ModuleTest.php Avoid DB access in more non-Database tests 2023-08-06 16:07:27 +00:00
OOUIImageModuleTest.php
ResourceLoaderTest.php ResourceLoader: wrap module definitions in functions 2023-08-11 00:36:52 +00:00
SkinModuleTest.php Create mediawiki.tempUserBanner module 2023-06-30 00:41:46 +00:00
StartUpModuleTest.php Avoid DB access in non-database tests 2023-08-06 22:57:48 +00:00
UserOptionsModuleTest.php
WikiModuleTest.php Fix DB usage in non-database tests (part 2) 2023-08-06 22:57:28 +00:00