mirror of
https://github.com/servo/servo.git
synced 2025-09-29 16:19:14 +01:00
Implement Trusted Types for ShadowRoot (#38595)
Also make TrustedHTML work the same as TrustedScript by only taking 1 `&str` to make things easier. Part of #36258 Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
This commit is contained in:
parent
abc549eff7
commit
3976fa77bc
10 changed files with 38 additions and 52 deletions
|
@ -1,9 +0,0 @@
|
|||
[block-string-assignment-to-ShadowRoot-innerHTML.html]
|
||||
[`shadowRoot.innerHTML = string` throws.]
|
||||
expected: FAIL
|
||||
|
||||
[`shadowRoot.innerHTML = null` throws.]
|
||||
expected: FAIL
|
||||
|
||||
[`shadowRoot.innerHTML = string` assigned via default policy (successful HTML transformation).]
|
||||
expected: FAIL
|
|
@ -1,9 +0,0 @@
|
|||
[block-string-assignment-to-ShadowRoot-setHTMLUnsafe.html]
|
||||
[`shadowRoot.setHTMLUnsafe(string)` assigned via default policy (successful HTML transformation).]
|
||||
expected: FAIL
|
||||
|
||||
[`shadowRoot.setHTMLUnsafe(string)` throws.]
|
||||
expected: FAIL
|
||||
|
||||
[`shadowRoot.setHTMLUnsafe(null)` throws.]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[trusted-types-reporting-for-ShadowRoot-innerHTML.html]
|
||||
[Violation report for plain string.]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[trusted-types-reporting-for-ShadowRoot-setHTMLUnsafe.html]
|
||||
[Violation report for plain string.]
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue