From 1d0fe2325c090f5e6581b242e590885d38941ae9 Mon Sep 17 00:00:00 2001 From: Luke Wilde Date: Sat, 5 Nov 2022 15:13:20 +0000 Subject: [PATCH] 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. --- Userland/Libraries/LibWeb/HTML/HTMLIFrameElement.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLIFrameElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLIFrameElement.cpp index adc687c5e3..83dcc30473 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLIFrameElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLIFrameElement.cpp @@ -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)); } }