mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Implement inline CSP check for style element (#36860)
Part of #4577 Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com> Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
This commit is contained in:
parent
d73b7653b4
commit
e9f364ef51
14 changed files with 23 additions and 59 deletions
|
@ -1,7 +0,0 @@
|
|||
[style-src-elem-blocked-attr-allowed.html]
|
||||
expected: TIMEOUT
|
||||
[Should fire a security policy violation for the inline block]
|
||||
expected: NOTRUN
|
||||
|
||||
[The inline style should not be applied and the attribute style should be applied]
|
||||
expected: FAIL
|
|
@ -1,7 +0,0 @@
|
|||
[style-src-elem-blocked-src-allowed.html]
|
||||
expected: TIMEOUT
|
||||
[Should fire a security policy violation event]
|
||||
expected: NOTRUN
|
||||
|
||||
[The inline style should not be applied]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[injected-inline-style-blocked.sub.html]
|
||||
[Expecting logs: ["violated-directive=style-src-elem","violated-directive=style-src-elem","PASS"\]]
|
||||
expected: FAIL
|
|
@ -1,7 +0,0 @@
|
|||
[inline-style-blocked.sub.html]
|
||||
expected: TIMEOUT
|
||||
[Triggers securitypolicyviolation.]
|
||||
expected: TIMEOUT
|
||||
|
||||
[Inline style element is blocked by CSP.]
|
||||
expected: FAIL
|
|
@ -1,7 +1,4 @@
|
|||
[style-src-hash-blocked.html]
|
||||
expected: TIMEOUT
|
||||
[Should not load style that does not match hash]
|
||||
expected: FAIL
|
||||
|
||||
[Should fire a securitypolicyviolation event]
|
||||
expected: NOTRUN
|
||||
|
|
3
tests/wpt/meta/content-security-policy/style-src/style-src-hash-case-insensitive.html.ini
vendored
Normal file
3
tests/wpt/meta/content-security-policy/style-src/style-src-hash-case-insensitive.html.ini
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
[style-src-hash-case-insensitive.html]
|
||||
[All style elements should load because they have proper hashes]
|
||||
expected: FAIL
|
|
@ -1,7 +1,4 @@
|
|||
[style-src-injected-inline-style-blocked.html]
|
||||
expected: TIMEOUT
|
||||
[Injected style attributes should not be applied]
|
||||
expected: FAIL
|
||||
|
||||
[Should fire a securitypolicyviolation event]
|
||||
expected: NOTRUN
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
[style-src-inline-style-blocked.html]
|
||||
expected: TIMEOUT
|
||||
[Inline style element should not load without 'unsafe-inline']
|
||||
expected: FAIL
|
||||
|
||||
[Should fire a securitypolicyviolation event]
|
||||
expected: NOTRUN
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
[style-src-inline-style-nonce-blocked.html]
|
||||
expected: TIMEOUT
|
||||
[Should not load inline style element with invalid nonce]
|
||||
expected: FAIL
|
||||
|
||||
[Should fire a securitypolicyviolation event]
|
||||
expected: NOTRUN
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
[stylehash-basic-blocked.sub.html]
|
||||
[Expecting alerts: ["PASS: The 'p' element's text is green, which means the style was correctly applied.", "violated-directive=style-src-elem"\]]
|
||||
expected: FAIL
|
|
@ -1,7 +0,0 @@
|
|||
[stylenonce-allowed.sub.html]
|
||||
expected: TIMEOUT
|
||||
[Should fire securitypolicyviolation]
|
||||
expected: NOTRUN
|
||||
|
||||
[stylenonce-allowed]
|
||||
expected: FAIL
|
|
@ -1,7 +0,0 @@
|
|||
[stylenonce-blocked.sub.html]
|
||||
expected: TIMEOUT
|
||||
[Should fire securitypolicyviolation]
|
||||
expected: NOTRUN
|
||||
|
||||
[stylenonce-blocked]
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue