mirror of
https://github.com/servo/servo.git
synced 2025-08-19 04:15:33 +01:00
Run subset of CSP tests by default. (#36402)
This will establish a baseline for the changes from #36363. Testing: New tests in CI. Fixes: Part of #4577 Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
95eedb997a
commit
ce4ca9ee98
48 changed files with 333 additions and 0 deletions
3
tests/wpt/meta/content-security-policy/child-src/child-src-blocked.sub.html.ini
vendored
Normal file
3
tests/wpt/meta/content-security-policy/child-src/child-src-blocked.sub.html.ini
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
[child-src-blocked.sub.html]
|
||||
[Expecting logs: ["PASS IFrame #1 generated a load event.", "violated-directive=frame-src"\]]
|
||||
expected: FAIL
|
|
@ -0,0 +1,3 @@
|
|||
[child-src-conflicting-frame-src.sub.html]
|
||||
[Expecting logs: ["PASS IFrame #1 generated a load event.", "violated-directive=frame-src"\]]
|
||||
expected: FAIL
|
3
tests/wpt/meta/content-security-policy/child-src/child-src-cross-origin-load.sub.html.ini
vendored
Normal file
3
tests/wpt/meta/content-security-policy/child-src/child-src-cross-origin-load.sub.html.ini
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
[child-src-cross-origin-load.sub.html]
|
||||
[Two of the three iframe are expected to load.]
|
||||
expected: FAIL
|
3
tests/wpt/meta/content-security-policy/child-src/child-src-redirect-blocked.sub.html.ini
vendored
Normal file
3
tests/wpt/meta/content-security-policy/child-src/child-src-redirect-blocked.sub.html.ini
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
[child-src-redirect-blocked.sub.html]
|
||||
[Expecting logs: ["PASS IFrame #1 generated a load event.", "violated-directive=frame-src"\]]
|
||||
expected: FAIL
|
7
tests/wpt/meta/content-security-policy/child-src/child-src-worker-blocked.sub.html.ini
vendored
Normal file
7
tests/wpt/meta/content-security-policy/child-src/child-src-worker-blocked.sub.html.ini
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
[child-src-worker-blocked.sub.html]
|
||||
expected: ERROR
|
||||
[Should throw a securitypolicyviolation event]
|
||||
expected: TIMEOUT
|
||||
|
||||
[Should block worker because it does not match any directive including the deprecated 'child-src']
|
||||
expected: TIMEOUT
|
Loading…
Add table
Add a link
Reference in a new issue