mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:48:11 +00:00
LibWeb+WebContent: Add on_load_finish hook to web views
This isn't entirely symmetrical with on_load_start as it will also fire on reloads and back/forward navigations. However, it's good enough for some basic use cases, and we can do more sophisticated notifications later on when we need them.
This commit is contained in:
parent
52dbdf4245
commit
eda9fb13cc
12 changed files with 31 additions and 7 deletions
|
@ -274,6 +274,9 @@ void FrameLoader::resource_did_load()
|
|||
ASSERT(is<HTML::HTMLIFrameElement>(*host_element));
|
||||
downcast<HTML::HTMLIFrameElement>(*host_element).content_frame_did_load({});
|
||||
}
|
||||
|
||||
if (auto* page = frame().page())
|
||||
page->client().page_did_finish_loading(url);
|
||||
}
|
||||
|
||||
void FrameLoader::resource_did_fail()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue