mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:57:35 +00:00
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. :^)
This commit is contained in:
parent
58309444d7
commit
108de5dea0
3 changed files with 0 additions and 10 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue