summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Loader
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-12-04 14:47:24 +0100
committerAndreas Kling <kling@serenityos.org>2021-12-04 14:47:24 +0100
commit108de5dea032664e9f8e2278096a5021efd81884 (patch)
tree8e433d5bbdf52ab0237f9e5371e676290df87cb3 /Userland/Libraries/LibWeb/Loader
parent58309444d735d9e69ebb45a85cdf6d594fedfeb0 (diff)
downloadserenity-108de5dea032664e9f8e2278096a5021efd81884.zip
LibWeb: Stop sending "load" event twice to iframes
The "completely finish loading" algorithm (from the HTML spec) is responsible for sending a "load" event to nested browsing context containers (iframes). This patch removes the old mechanism for sending "load" events, which we had mistakenly kept around, causing two events to be sent instead of one. :^)
Diffstat (limited to 'Userland/Libraries/LibWeb/Loader')
-rw-r--r--Userland/Libraries/LibWeb/Loader/FrameLoader.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp b/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp
index 8620462bd1..e0c2d559f9 100644
--- a/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp
+++ b/Userland/Libraries/LibWeb/Loader/FrameLoader.cpp
@@ -309,9 +309,6 @@ void FrameLoader::resource_did_load()
else
browsing_context().set_viewport_scroll_offset({ 0, 0 });
- if (auto* container = browsing_context().container())
- container->nested_browsing_context_did_load({});
-
if (auto* page = browsing_context().page())
page->client().page_did_finish_loading(url);
}