feat: implement ShadowRoot::setHTMLUnsafe (#36240)

Implements #36166

---------

Signed-off-by: TG <ebiritg@gmail.com>
This commit is contained in:
Kelechi Ebiri 2025-05-01 16:19:41 +01:00 committed by GitHub
parent 5cdb0865ba
commit 1a3f10bba4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 46 additions and 4940 deletions

View file

@ -5732,9 +5732,6 @@
[SVGSVGElement interface: attribute onunload]
expected: FAIL
[ShadowRoot interface: operation setHTMLUnsafe((TrustedHTML or DOMString))]
expected: FAIL
[OffscreenCanvasRenderingContext2D interface: operation getContextAttributes()]
expected: FAIL

View file

@ -1,3 +0,0 @@
[setHTMLUnsafe-CEReactions.html]
[ShadowRoot.setHTMLUnsafe should trigger custom element reactions.]
expected: FAIL

View file

@ -1,6 +0,0 @@
[setHTMLUnsafe.html]
[ShadowRoot: setHTMLUnsafe with no shadowdom.]
expected: FAIL
[ShadowRoot: setHTMLUnsafe with shadowdom.]
expected: FAIL

File diff suppressed because it is too large Load diff

View file

@ -1,9 +1,9 @@
[block-string-assignment-to-ShadowRoot-setHTMLUnsafe.html]
[shadowRoot.setHTMLUnsafe(html) assigned via policy (successful HTML transformation).]
expected: FAIL
[`shadowRoot.setHTMLUnsafe(string)` assigned via default policy (successful HTML transformation).]
expected: FAIL
[`shadowRoot.setHTMLUnsafe(string)` assigned via default policy does not throw]
[`shadowRoot.setHTMLUnsafe(string)` throws.]
expected: FAIL
[`shadowRoot.setHTMLUnsafe(null)` throws.]
expected: FAIL

View file

@ -1,6 +1,3 @@
[trusted-types-reporting-for-ShadowRoot-setHTMLUnsafe.html]
[No violation reported for TrustedHTML.]
expected: FAIL
[Violation report for plain string.]
expected: FAIL