mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 22:38:51 +00:00
LibWeb: Don't call load_src after process_the_iframe_attributes
process_the_iframe_attributes already causes a navigation, so this would cause a double navigation and blow away any setup that JS may have done from events fired in process_the_iframe_attributes.
This commit is contained in:
parent
72098d2699
commit
1d0fe2325c
Notes:
sideshowbarker
2024-07-17 04:42:16 +09:00
Author: https://github.com/Lubrsi
Commit: 1d0fe2325c
Pull-request: https://github.com/SerenityOS/serenity/pull/15964
Reviewed-by: https://github.com/awesomekling
1 changed files with 0 additions and 1 deletions
|
@ -48,7 +48,6 @@ void HTMLIFrameElement::inserted()
|
|||
|
||||
// 3. Process the iframe attributes for element, with initialInsertion set to true.
|
||||
process_the_iframe_attributes(true);
|
||||
load_src(attribute(HTML::AttributeNames::src));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue