mirror of
https://github.com/servo/servo.git
synced 2025-10-01 00:59:15 +01:00
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:
parent
a0730d7154
commit
c16ca22970
509 changed files with 5492 additions and 12 deletions
|
@ -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
|
4
tests/wpt/meta/content-security-policy/resource-hints/prefetch-allowed-by-default.html.ini
vendored
Normal file
4
tests/wpt/meta/content-security-policy/resource-hints/prefetch-allowed-by-default.html.ini
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
[prefetch-allowed-by-default.html]
|
||||
expected: TIMEOUT
|
||||
[Prefetch should succeed when allowed by default-src]
|
||||
expected: TIMEOUT
|
4
tests/wpt/meta/content-security-policy/resource-hints/prefetch-allowed-no-default.html.ini
vendored
Normal file
4
tests/wpt/meta/content-security-policy/resource-hints/prefetch-allowed-no-default.html.ini
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
[prefetch-allowed-no-default.html]
|
||||
expected: TIMEOUT
|
||||
[Prefetch should succeed when there is no default-src]
|
||||
expected: TIMEOUT
|
|
@ -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
|
|
@ -0,0 +1,4 @@
|
|||
[prefetch-blocked-by-default-multiple-policies.html]
|
||||
expected: TIMEOUT
|
||||
[Prefetch should fail when restricted by default-src]
|
||||
expected: TIMEOUT
|
4
tests/wpt/meta/content-security-policy/resource-hints/prefetch-blocked-by-default.html.ini
vendored
Normal file
4
tests/wpt/meta/content-security-policy/resource-hints/prefetch-blocked-by-default.html.ini
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
[prefetch-blocked-by-default.html]
|
||||
expected: TIMEOUT
|
||||
[Prefetch should fail when restricted by default-src]
|
||||
expected: TIMEOUT
|
79
tests/wpt/meta/content-security-policy/resource-hints/prefetch-generate-directives.html.ini
vendored
Normal file
79
tests/wpt/meta/content-security-policy/resource-hints/prefetch-generate-directives.html.ini
vendored
Normal 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
|
|
@ -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
|
4
tests/wpt/meta/content-security-policy/resource-hints/prefetch-no-csp.html.ini
vendored
Normal file
4
tests/wpt/meta/content-security-policy/resource-hints/prefetch-no-csp.html.ini
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
[prefetch-no-csp.html]
|
||||
expected: TIMEOUT
|
||||
[Prefetch succeeds when no CSP]
|
||||
expected: TIMEOUT
|
Loading…
Add table
Add a link
Reference in a new issue