mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-17 07:41:54 +00:00
LibWeb: Convert create_new_child_navigable to HeapFunction
This commit is contained in:
parent
b86ddac11a
commit
3a7ccf8c25
Notes:
github-actions[bot]
2024-08-18 09:16:20 +00:00
Author: https://github.com/shannonbooth
Commit: 3a7ccf8c25
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1108
Reviewed-by: https://github.com/awesomekling
3 changed files with 7 additions and 7 deletions
|
@ -61,11 +61,11 @@ void HTMLIFrameElement::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()) {
|
||||
// 1. Create a new child navigable for element.
|
||||
MUST(create_new_child_navigable([this] {
|
||||
MUST(create_new_child_navigable(JS::create_heap_function(realm().heap(), [this] {
|
||||
// 3. Process the iframe attributes for element, with initialInsertion set to true.
|
||||
process_the_iframe_attributes(true);
|
||||
set_content_navigable_initialized();
|
||||
}));
|
||||
})));
|
||||
|
||||
// FIXME: 2. If element has a sandbox attribute, then parse the sandboxing directive given the attribute's value and element's iframe sandboxing flag set.
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue