mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 22:30:31 +00:00
LibWeb: Add a document observer to be notified upon becoming active
This commit is contained in:
parent
9a62e33517
commit
a2419b5f4e
Notes:
github-actions[bot]
2024-12-12 00:39:35 +00:00
Author: https://github.com/trflynn89
Commit: a2419b5f4e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2881
Reviewed-by: https://github.com/ADKaster ✅
3 changed files with 17 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue