LibWeb: Make HTMLIFrameElement.sandbox.supports() not throw

We have to list the set of allowed values for the DOMTokenList to not
throw when asking if one is supported.

This fixes an issue where YouTube embeds would hang indefinitely trying
to report an endless series of exceptions, seen on https://null.com/
This commit is contained in:
Andreas Kling
2024-12-03 12:00:35 +01:00
committed by Andreas Kling
parent b1796ebd2c
commit a7b3360fb6
Notes: github-actions[bot] 2024-12-03 14:31:06 +00:00
2 changed files with 4 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ Harness status: OK
Found 2 tests
2 Fail
Fail iframe 'sandbox' ASCII case insensitive, allow-same-orİgin
1 Pass
1 Fail
Pass iframe 'sandbox' ASCII case insensitive, allow-same-orİgin
Fail iframe 'sandbox' ASCII case insensitive, allow-ſcripts