mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-03 09:48:47 +00:00
LibWeb: Ensure fully active document before appending to an iframe
This commit is contained in:
parent
bfc28bd621
commit
15c15116dd
Notes:
github-actions[bot]
2024-11-01 11:26:14 +00:00
Author: https://github.com/shannonbooth
Commit: 15c15116dd
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2081
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue