wiki.techinc.nl/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
..
dependencystore Replace IDatabase::delete with DeleteQueryBuilder 2023-06-21 17:50:31 +02:00
Hook Drop more unused hard deprecated hooks 2022-12-01 03:36:48 +01:00
CircularDependencyError.php ResourceLoader: tweak comments and error messages 2023-04-03 18:21:30 +10:00
ClientHtml.php ResourceLoader: Remove support for CSP nonce 2023-08-09 02:30:39 +01:00
CodexModule.php Create separate ResourceLoader modules for Codex styles 2023-04-05 15:29:39 -04:00
Context.php qunit: Enable debug=2 by default for SpecialJavaScriptTest 2023-02-21 21:59:23 +00:00
DerivativeContext.php Revert "Reorg: Move some of request related classes to MediaWiki/Request" 2022-10-27 13:14:16 +00:00
FileModule.php ResourceLoader: deliver deprecation warnings as strings 2023-08-03 14:10:16 +10:00
FilePath.php ResourceLoader: Allow FileModule scripts to be generated with a callback 2023-05-09 11:47:40 +10:00
ForeignApiModule.php ResourceLoader namespace (attempt 2) 2022-05-24 15:41:46 +00:00
ForeignResourceManager.php foreign-resources.yaml: Add doc-only type 2023-05-03 19:33:04 +00:00
HookRunner.php Move some hooks to ResourceLoader\HookRunner 2023-05-11 20:51:19 +02:00
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 Migrate use of ${var}-style string interpolation 2022-07-29 02:45:09 +02:00
MessageBlobStore.php ResourceLoader: Clean up PHP 7.2 hacks 2022-11-17 09:51:33 +00:00
Module.php ResourceLoader: deliver deprecation warnings as strings 2023-08-03 14:10:16 +10:00
MwUrlModule.php ResourceLoader namespace (attempt 2) 2022-05-24 15:41:46 +00:00
OOUIFileModule.php ResourceLoader namespace (attempt 2) 2022-05-24 15:41:46 +00:00
OOUIIconPackModule.php Replace array_keys in foreach to use $_ as value instead 2023-07-10 02:53:52 +00:00
OOUIImageModule.php Replace substr with cleaner string methods 2023-05-20 15:40:21 +02:00
OOUIModule.php Use short array destructuring instead of list() 2022-10-21 15:33:37 +11:00
ResourceLoader.php ResourceLoader: Remove support for CSP nonce 2023-08-09 02:30:39 +01:00
SiteModule.php Fix even more PHPStorm inspections (#3) 2023-03-25 00:30:15 +00:00
SiteStylesModule.php ResourceLoader: Define targets in a single location 2023-02-02 16:27:08 +00:00
SkinModule.php Add a config to stop shipping the legacy media styles 2023-07-12 18:32:31 -04:00
StartUpModule.php Deprecate use of targets 2023-06-16 15:16:07 -07:00
UserModule.php ResourceLoader: Define targets in a single location 2023-02-02 16:27:08 +00:00
UserOptionsModule.php ResourceLoader: Define targets in a single location 2023-02-02 16:27:08 +00:00
UserStylesModule.php ResourceLoader: Define targets in a single location 2023-02-02 16:27:08 +00:00
VueComponentParser.php Respond to some messages from Phan on PHP 8.1 2022-11-03 16:25:43 +11:00
WikiModule.php Database: support passing an IReadableDatabase to getCacheSetOptions 2023-06-09 10:46:03 +03:00