Run all CSP tests in CI by default. (#36436)

Extending the original set from #36402 since there are additional tests
relevant to the work happening in #36409 and #36363.

Testing: New tests in CI.
Fixes: Part of https://github.com/servo/servo/issues/4577

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
Josh Matthews 2025-04-10 04:09:23 -04:00 committed by GitHub
parent a0730d7154
commit c16ca22970
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
509 changed files with 5492 additions and 12 deletions

View file

@ -0,0 +1,30 @@
[dedicatedworker-connect-src.html]
[Cross-origin 'fetch()' in http: with connect-src 'self']
expected: FAIL
[Cross-origin XHR in http: with connect-src 'self']
expected: FAIL
[Same-origin => cross-origin 'fetch()' in http: with connect-src 'self']
expected: FAIL
[WebSocket in http: with connect-src 'self']
expected: FAIL
[Reports match in http: with connect-src 'self']
expected: FAIL
[Cross-origin 'fetch()' in blob: with connect-src 'self']
expected: FAIL
[Cross-origin XHR in blob: with connect-src 'self']
expected: FAIL
[Same-origin => cross-origin 'fetch()' in blob: with connect-src 'self']
expected: FAIL
[WebSocket in blob: with connect-src 'self']
expected: FAIL
[Reports match in blob: with connect-src 'self']
expected: FAIL

View file

@ -0,0 +1,16 @@
[dedicatedworker-report-only.html]
expected: TIMEOUT
[Cross-origin 'fetch()'.]
expected: TIMEOUT
[Cross-origin XHR.]
expected: NOTRUN
[Same-origin => cross-origin 'fetch()'.]
expected: NOTRUN
[WebSocket.]
expected: NOTRUN
[connect-src-self-report-only]
expected: NOTRUN

View file

@ -0,0 +1,24 @@
[dedicatedworker-script-src.html]
[Cross-origin `importScripts()` blocked in http: with script-src 'self']
expected: FAIL
[`eval()` blocked in http: with script-src 'self']
expected: FAIL
[`setTimeout([string\])` blocked in http: with script-src 'self']
expected: FAIL
[Reports are sent for http: with script-src 'self']
expected: FAIL
[Cross-origin `importScripts()` blocked in blob: with script-src 'self']
expected: FAIL
[`eval()` blocked in blob: with script-src 'self']
expected: FAIL
[`setTimeout([string\])` blocked in blob: with script-src 'self']
expected: FAIL
[Reports are sent for blob: with script-src 'self']
expected: FAIL

View file

@ -0,0 +1,10 @@
[serviceworker-connect-src.https.sub.html]
expected: TIMEOUT
[serviceworker-connect-src]
expected: TIMEOUT
[serviceworker-connect-src 1]
expected: NOTRUN
[serviceworker-connect-src 2]
expected: NOTRUN

View file

@ -0,0 +1,4 @@
[serviceworker-report-only.https.sub.html]
expected: TIMEOUT
[serviceworker-report-only]
expected: TIMEOUT

View file

@ -0,0 +1,10 @@
[serviceworker-script-src.https.sub.html]
expected: TIMEOUT
[serviceworker-script-src]
expected: TIMEOUT
[serviceworker-script-src 1]
expected: NOTRUN
[serviceworker-script-src 2]
expected: NOTRUN

View file

@ -0,0 +1,3 @@
[sharedworker-connect-src.sub.html]
[sharedworker-connect-src]
expected: FAIL

View file

@ -0,0 +1,2 @@
[sharedworker-report-only.sub.html]
expected: ERROR

View file

@ -0,0 +1,3 @@
[sharedworker-script-src.sub.html]
[sharedworker-script-src]
expected: FAIL