mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 22:52:22 +02:00
Bypass the async body-reading pipeline for about:srcdoc iframes whose body bytes are already in memory. Set up a deferred parser at document load time and run the post-activation update synchronously, so the body element exists before parent script can observe the new document via contentDocument. This matches Chrome and Firefox behavior for srcdoc iframes and fixes the flaky test `set-innerHTML-inside-iframe-srcdoc-document.html` that relied on body being non-null. Co-authored-by: Tim Ledbetter <tim.ledbetter@ladybird.org>
29 KiB
29 KiB