mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 18:47:15 +02:00
LibWeb: Ensure fully active document before appending to an iframe
This commit is contained in:
committed by
Andreas Kling
parent
bfc28bd621
commit
15c15116dd
Notes:
github-actions[bot]
2024-11-01 11:26:14 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/15c15116dd3 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2081
@@ -59,7 +59,7 @@ void HTMLIFrameElement::inserted()
|
||||
HTMLElement::inserted();
|
||||
|
||||
// When an iframe element element is inserted into a document whose browsing context is non-null, the user agent must run these steps:
|
||||
if (in_a_document_tree() && document().browsing_context()) {
|
||||
if (in_a_document_tree() && document().browsing_context() && document().is_fully_active()) {
|
||||
// 1. Create a new child navigable for element.
|
||||
MUST(create_new_child_navigable(JS::create_heap_function(realm().heap(), [this] {
|
||||
// 3. Process the iframe attributes for element, with initialInsertion set to true.
|
||||
|
||||
Reference in New Issue
Block a user