Check CSP for inline event handlers (#36510)

This also ensures that document now reports all violations and we set
the correct directive.

With these changes, all `script-src-attr-elem` WPT tests pass.

Part of #36437 

Requires servo/rust-content-security-policy#3 to land first

Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
This commit is contained in:
Tim van der Lippe 2025-04-17 23:11:25 +02:00 committed by GitHub
parent 70b3e24816
commit 2a81987590
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
64 changed files with 58 additions and 569 deletions

View file

@ -1,7 +1,4 @@
[report-to-directive-allowed-in-meta.https.sub.html]
[Event is fired]
expected: FAIL
[Report is observable to ReportingObserver]
expected: FAIL

View file

@ -1,3 +0,0 @@
[reporting-api-report-to-only-sends-reports-to-first-endpoint.https.sub.html]
[Event is fired]
expected: FAIL

View file

@ -1,3 +0,0 @@
[reporting-api-report-to-overrides-report-uri-1.https.sub.html]
[Event is fired]
expected: FAIL

View file

@ -1,3 +0,0 @@
[reporting-api-report-to-overrides-report-uri-2.https.sub.html]
[Event is fired]
expected: FAIL

View file

@ -1,7 +1,4 @@
[reporting-api-sends-reports-on-violation.https.sub.html]
[Event is fired]
expected: FAIL
[Report is observable to ReportingObserver]
expected: FAIL