LibWeb/HTML: Use DOM's post-connection steps for iframe elements

See: c8ec987d1
This commit is contained in:
Shannon Booth 2024-12-15 02:59:23 +13:00 committed by Tim Flynn
commit 18dddaa742
Notes: github-actions[bot] 2024-12-14 20:07:33 +00:00
4 changed files with 105 additions and 13 deletions

View file

@ -0,0 +1,9 @@
Harness status: OK
Found 4 tests
4 Pass
Pass Script inserted after an iframe in the same appendChild() call can observe the iframe's non-null contentWindow
Pass A script inserted atomically before an iframe (using a div) does not observe the iframe's contentWindow, since the 'script running' and 'iframe setup' both happen in order, after DOM insertion completes
Pass A script inserted atomically before an iframe (using a DocumentFragment) does not observe the iframe's contentWindow, since the 'script running' and 'iframe setup' both happen in order, after DOM insertion completes
Pass A script inserted atomically before an iframe (using a append() with multiple arguments) does not observe the iframe's contentWindow, since the 'script running' and 'iframe setup' both happen in order, after DOM insertion completes