LibWeb: Add a document observer to be notified upon becoming active

This commit is contained in:
Timothy Flynn 2024-12-11 13:17:41 -05:00 committed by Andrew Kaster
commit a2419b5f4e
Notes: github-actions[bot] 2024-12-12 00:39:35 +00:00
3 changed files with 17 additions and 0 deletions

View file

@ -3887,6 +3887,10 @@ void Document::make_active()
navigable()->traversable_navigable()->page().client().page_did_finish_loading(url());
m_needs_to_call_page_did_load = false;
}
notify_each_document_observer([&](auto const& document_observer) {
return document_observer.document_became_active();
});
}
HTML::ListOfAvailableImages& Document::list_of_available_images()