mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 12:18:25 +00:00
LibWeb: Add a document observer to be notified upon becoming active
This commit is contained in:
committed by
Andrew Kaster
parent
9a62e33517
commit
a2419b5f4e
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user