Implement iframe.srcdoc trusted type sink (#36960)

Part of https://github.com/servo/servo/issues/36258

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:
Tim van der Lippe 2025-05-13 23:07:13 +02:00 committed by GitHub
parent 9f6a40e6aa
commit c985c08737
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 36 additions and 38 deletions

View file

@ -1,12 +0,0 @@
[HTMLElement-generic.html]
[TT enabled: iframe.srcdoc\n = String on a\n connected element\n ]
expected: FAIL
[TT enabled: iframe.srcdoc\n = String on a\n non-connected element\n ]
expected: FAIL
[TT enabled: iframe.srcdoc\n = String on a\n connected element\n after removing the "require-trusted-types-for 'script' directive]
expected: FAIL
[TT enabled: iframe.srcdoc\n = String on a\n non-connected element\n after removing the "require-trusted-types-for 'script' directive]
expected: FAIL

View file

@ -20,9 +20,6 @@
[div.onclick's mutationobservers receive the default policy's value.]
expected: FAIL
[iframe.srcdoc accepts string and null after default policy was created.]
expected: FAIL
[div.onclick accepts string and null after default policy was created.]
expected: FAIL

View file

@ -1,6 +0,0 @@
[block-string-assignment-to-HTMLElement-generic.html]
[iframe.srcdoc accepts only TrustedHTML]
expected: FAIL
[iframe.srcdoc accepts string and null after default policy was created]
expected: FAIL

View file

@ -1,9 +0,0 @@
[block-string-assignment-to-HTMLIFrameElement-srcdoc.html]
[`iframe.srcdoc = string` throws.]
expected: FAIL
[`iframe.srcdoc = null` throws.]
expected: FAIL
[`iframe.srcdoc = string` assigned via default policy (successful HTML transformation).]
expected: FAIL

View file

@ -1,3 +0,0 @@
[trusted-types-reporting-for-HTMLIFrameElement-srcdoc.html]
[Violation report for plain string.]
expected: FAIL