This adds methods to ParserOutput ::addExtraCSPStyleSrc, ::addExtraCSPDefaultSrc, and ::addExtraCSPScriptSrc, to easily allow parser tags/functions to add additional CSP sources if their tag needs it. Previously such an extension would need to use and OutputPage hook. This is modeled on how addModules() works. The immediate use case is for Kartographer (T240960), although its expected that lots of extensions might do something like this, especially extensions used outside of Wikimedia. Change-Id: I24e5f0b4edff58025a0c2a3e1a9aa3f62eb7db7b |
||
|---|---|---|
| .. | ||
| CoreParserFunctionsTest.php | ||
| MagicVariableTest.php | ||
| ParserMethodsTest.php | ||
| ParserOptionsTest.php | ||
| ParserOutputTest.php | ||
| ParserPreloadTest.php | ||
| ParserTest.php | ||
| PreprocessorTest.php | ||
| SanitizerTest.php | ||
| StripStateTest.php | ||
| TagHooksTest.php | ||