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,10 @@
[prefetch-allowed-by-any-directive.sub.html]
expected: TIMEOUT
[Prefetch should succeed when restricted by default-src but allowed by other directive]
expected: TIMEOUT
[Prefetch should fail when restricted by default-src and different origin allowed by other directive]
expected: NOTRUN
[Prefetch should succeed when restricted by default-src but origin allowed by other directive]
expected: NOTRUN

View file

@ -0,0 +1,4 @@
[prefetch-allowed-by-default.html]
expected: TIMEOUT
[Prefetch should succeed when allowed by default-src]
expected: TIMEOUT

View file

@ -0,0 +1,4 @@
[prefetch-allowed-no-default.html]
expected: TIMEOUT
[Prefetch should succeed when there is no default-src]
expected: TIMEOUT

View file

@ -0,0 +1,4 @@
[prefetch-allowed-with-conflicting-permissive-policies.html]
expected: TIMEOUT
[Prefetch should succeed when a directive in a policy is permissive, even if a subsequent policy overrides that.]
expected: TIMEOUT

View file

@ -0,0 +1,4 @@
[prefetch-blocked-by-default-multiple-policies.html]
expected: TIMEOUT
[Prefetch should fail when restricted by default-src]
expected: TIMEOUT

View file

@ -0,0 +1,4 @@
[prefetch-blocked-by-default.html]
expected: TIMEOUT
[Prefetch should fail when restricted by default-src]
expected: TIMEOUT

View file

@ -0,0 +1,79 @@
[prefetch-generate-directives.html]
expected: TIMEOUT
[Test that script-src enabled with everything else disabled allows prefetching]
expected: FAIL
[Test that script-src enabled with default-src disabled allows prefetching]
expected: FAIL
[Test that img-src enabled with everything else disabled allows prefetching]
expected: FAIL
[Test that img-src enabled with default-src disabled allows prefetching]
expected: FAIL
[Test that connect-src enabled with everything else disabled allows prefetching]
expected: TIMEOUT
[Test that connect-src enabled with default-src disabled allows prefetching]
expected: NOTRUN
[Test that object-src enabled with everything else disabled allows prefetching]
expected: NOTRUN
[Test that object-src enabled with default-src disabled allows prefetching]
expected: NOTRUN
[Test that font-src enabled with everything else disabled allows prefetching]
expected: NOTRUN
[Test that font-src enabled with default-src disabled allows prefetching]
expected: NOTRUN
[Test that manifest-src enabled with everything else disabled allows prefetching]
expected: NOTRUN
[Test that manifest-src enabled with default-src disabled allows prefetching]
expected: NOTRUN
[Test that media-src enabled with everything else disabled allows prefetching]
expected: NOTRUN
[Test that media-src enabled with default-src disabled allows prefetching]
expected: NOTRUN
[Test that style-src enabled with everything else disabled allows prefetching]
expected: NOTRUN
[Test that style-src enabled with default-src disabled allows prefetching]
expected: NOTRUN
[Test that child-src enabled with everything else disabled allows prefetching]
expected: NOTRUN
[Test that child-src enabled with default-src disabled allows prefetching]
expected: NOTRUN
[Test that frame-src enabled with everything else disabled allows prefetching]
expected: NOTRUN
[Test that frame-src enabled with default-src disabled allows prefetching]
expected: NOTRUN
[Test that worker-src enabled with everything else disabled allows prefetching]
expected: NOTRUN
[Test that worker-src enabled with default-src disabled allows prefetching]
expected: NOTRUN
[Test that base-uri enabled with everything else disabled allows prefetching]
expected: NOTRUN
[Test that base-uri enabled with default-src disabled allows prefetching]
expected: NOTRUN
[Test that permissive script-src-elem supersedes script-src]
expected: NOTRUN
[Test that permissive script-src supersedes script-src-elem]
expected: NOTRUN

View file

@ -0,0 +1,4 @@
[prefetch-ignores-prefetch-src.sub.html]
expected: TIMEOUT
[Prefetch should fail when restricted by default-src and allowed by unsupported prefetch-src directive (prefetch-src should be ignored)]
expected: TIMEOUT

View file

@ -0,0 +1,4 @@
[prefetch-no-csp.html]
expected: TIMEOUT
[Prefetch succeeds when no CSP]
expected: TIMEOUT