wiki.techinc.nl/tests/phpunit/includes/ResourceLoader
Timo Tijhof b28faecb2b ResourceLoader: Remove support for CSP nonce
The "nonce" CSP feature has been never been properly tested and is not
on track to be enabled at WMF or in MW by default. The use of
nonce-protected eval is not particularly meaningful. It is trivially
bypassed by mw.loader.implement, mw.loader.store, or importScript();
all of which allow any code to be executed directly, or to be stored
and loaded from a first-party origin.

The "nonce" feature is not required for the T208188 roadmap, and with
change I51b8535b2b21a3 there is now also a (small) performance reason
to keep this disabled long-term.

Until and unless there is a plan for enabling this particular aspect
of CSP, we might as well remove it so that we don't waste time our
time building abstraction layers and satisfying dependency injection
through many years for something that might never be used.

Note that this does not remove CSP support from ResourceLoader, and
does not take away from the future of enabling CSP in MediaWiki to
e.g. strictly block third-party scripts, or to require domains to
opt-in by site config or user pref (T208188).

Change-Id: I5a176c41a06a484a11e64bdacdc42b40811fe72e
2023-08-09 02:30:39 +01:00
..
templates ResourceLoader namespace (attempt 2) 2022-05-24 15:41:46 +00:00
ClientHtmlTest.php ResourceLoader: Remove support for CSP nonce 2023-08-09 02:30:39 +01: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 ResourceLoader: Hoist and simplify @covers in test cases 2022-08-23 23:59:17 +00:00
MessageBlobStoreTest.php objectcache: Remove $wgMainWANCache and $wgWANObjectCaches 2023-03-07 22:47:04 +00:00
ModuleTest.php Avoid DB access in more non-Database tests 2023-08-06 16:07:27 +00:00
OOUIImageModuleTest.php ResourceLoader: Remove SVG fallback hack from ImageModule 2023-02-08 01:32:07 +01:00
ResourceLoaderTest.php Avoid DB access in more non-Database tests 2023-08-06 16:07:27 +00:00
SkinModuleTest.php Create mediawiki.tempUserBanner module 2023-06-30 00:41:46 +00:00
StartUpModuleTest.php ResourceLoader: Raise MW JavaScript startup requirement to ES6 2023-03-30 14:26:05 +01:00
UserOptionsModuleTest.php ResourceLoader namespace (attempt 2) 2022-05-24 15:41:46 +00:00
WikiModuleTest.php tests: Use MainConfigNames consts to refer config names 2023-06-19 20:21:08 +00:00