Commit graph

7 commits

Author SHA1 Message Date
James D. Forrester
4bae64d1c7 Namespace includes/context
Bug: T353458
Change-Id: I4dbef138fd0110c14c70214282519189d70c94fb
2024-02-08 11:07:01 -05:00
Amir Sarabadani
4c68983623 Drop deprecated config $wgAllowImageTag
Soft-deprecated since 1.35 and hard-deprecated since at least
I9776d11d4e2d184 (1.39).

Not set in production.

Change-Id: I68b68ffcdff22daafad34c186d1cc609dcecbf32
2024-01-30 11:42:54 +00:00
Umherirrender
388b0374fa tests: Use namespaced classes
Changes to the use statements done automatically via script
Addition of missing use statements and changes to docs done manually

Change-Id: Ib326ae1e5c8409a98398c721e8b8ce42c73bd012
2023-12-11 15:59:55 +01:00
Gergő Tisza
6fbd223f1d
ContentSecurityPolicy: Expose directives
Instead of only exposing the ability to send CSP headers, expose
the values of the headers so they can be set via other mechanisms.

Bug: T169027
Change-Id: Ie9f7a29218392e3bc3215ce879ed2a3c48847a7c
2023-11-14 20:43:35 -08:00
Gergő Tisza
f5cd4452b1
ContentSecurityPolicy: Add test for sendHeaders
Bug: T169027
Change-Id: I46a6ee7eaff57d3fa134a5e6e1373d5b0e1f381e
2023-11-14 20:43:35 -08:00
Gergő Tisza
81cf4fe95e
ContentSecurityPolicy: Clear hooks during tests
This makes the tests pass when extensions adding custom policies
are enabled.

Bug: T169027
Change-Id: If5b19ae7885a82f8de2acb7440146079eece10c1
2023-11-14 20:43:34 -08:00
Umherirrender
790ae736c1 tests: Move test cases from /includes/ into sub folder
Follow move of the tested class
Most moves are part of T321882

Change-Id: I74ab45d6a5331dcb2ff0b65dc2cc7c6315146646
2023-09-13 00:09:05 +02:00
Renamed from tests/phpunit/includes/ContentSecurityPolicyTest.php (Browse further)