mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 13:30:31 +00:00
LibWeb: Create navigables only for iframe in a document tree
Navigable should be created for an iframe only, if after insertion, its root is the document. Fixes https://github.com/SerenityOS/serenity/issues/21374
This commit is contained in:
parent
79ed72adb4
commit
b0d75ef096
Notes:
sideshowbarker
2024-07-17 06:45:52 +09:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/SerenityOS/serenity/commit/b0d75ef096 Pull-request: https://github.com/SerenityOS/serenity/pull/21382 Issue: https://github.com/SerenityOS/serenity/issues/21374
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,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 (document().browsing_context()) {
|
||||
if (in_a_document_tree() && document().browsing_context()) {
|
||||
// 1. Create a new child navigable for element.
|
||||
MUST(create_new_child_navigable());
|
||||
|
||||
|
|
Loading…
Reference in a new issue