1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:47:45 +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:
Andreas Kling 2021-12-04 14:47:24 +01:00
parent 58309444d7
commit 108de5dea0
3 changed files with 0 additions and 10 deletions

View file

@ -56,9 +56,4 @@ const DOM::Document* BrowsingContextContainer::content_document() const
return m_nested_browsing_context ? m_nested_browsing_context->active_document() : nullptr;
}
void BrowsingContextContainer::nested_browsing_context_did_load(Badge<FrameLoader>)
{
dispatch_event(DOM::Event::create(EventNames::load));
}
}