Skip to content

Commit 3f61533

Browse files
jdmTG199
authored andcommitted
Run subset of CSP tests by default. (servo#36402)
This will establish a baseline for the changes from servo#36363. Testing: New tests in CI. Fixes: Part of servo#4577 Signed-off-by: Josh Matthews <[email protected]>
1 parent 3b388ed commit 3f61533

File tree

48 files changed

+333
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+333
-0
lines changed

tests/wpt/include.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ skip: true
1212
[samesite]
1313
skip: true
1414
[content-security-policy]
15+
[child-src]
16+
skip: false
17+
[connect-src]
18+
skip: false
19+
[default-src]
20+
skip: false
21+
[securitypolicyviolation]
22+
skip: false
1523
[unsafe-eval]
1624
skip: false
1725
[wasm-unsafe-eval]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[child-src-blocked.sub.html]
2+
[Expecting logs: ["PASS IFrame #1 generated a load event.", "violated-directive=frame-src"\]]
3+
expected: FAIL
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[child-src-conflicting-frame-src.sub.html]
2+
[Expecting logs: ["PASS IFrame #1 generated a load event.", "violated-directive=frame-src"\]]
3+
expected: FAIL
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[child-src-cross-origin-load.sub.html]
2+
[Two of the three iframe are expected to load.]
3+
expected: FAIL
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[child-src-redirect-blocked.sub.html]
2+
[Expecting logs: ["PASS IFrame #1 generated a load event.", "violated-directive=frame-src"\]]
3+
expected: FAIL
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[child-src-worker-blocked.sub.html]
2+
expected: ERROR
3+
[Should throw a securitypolicyviolation event]
4+
expected: TIMEOUT
5+
6+
[Should block worker because it does not match any directive including the deprecated 'child-src']
7+
expected: TIMEOUT
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[connect-src-beacon-allowed.sub.html]
2+
[Expecting logs: ["Pass"\]]
3+
expected: NOTRUN
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[connect-src-beacon-blocked.sub.html]
2+
[Expecting logs: ["Pass", "violated-directive=connect-src"\]]
3+
expected: NOTRUN
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[connect-src-beacon-redirect-to-blocked.sub.html]
2+
[Expecting logs: ["violated-directive=connect-src"\]]
3+
expected: NOTRUN
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[connect-src-eventsource-blocked.sub.html]
2+
[Expecting logs: ["blocked","violated-directive=connect-src"\]]
3+
expected: FAIL

0 commit comments

Comments
 (0)