mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
Add CSP check for inline style attribute (#36923)
To be able to abort the update, extract the functionality into a separate method. Otherwise, we don't run the `node.rev_version` at the end, which according to the comment is probably important. Not all `style-src` tests pass and I don't fully understand why yet, but I presume it has to do with some special quirks of stylesheets that other CSP checks don't have. All `style-src-attr-elem` tests pass though. Part of #4577 Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
This commit is contained in:
parent
565e16178f
commit
d0de4e64d2
10 changed files with 124 additions and 79 deletions
|
@ -1,4 +0,0 @@
|
|||
[style_attribute_denied_missing_unsafe_hashes.html]
|
||||
expected: TIMEOUT
|
||||
[Test that the inline style attribute is blocked]
|
||||
expected: NOTRUN
|
|
@ -1,4 +0,0 @@
|
|||
[style_attribute_denied_wrong_hash.html]
|
||||
expected: TIMEOUT
|
||||
[Test that the inline style attribute is blocked]
|
||||
expected: NOTRUN
|
Loading…
Add table
Add a link
Reference in a new issue