mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:47:34 +00:00
LibWeb: Add document_fully_loaded event to DocumentObserver
SVGUseElement needs to be able to query the fully loaded document for its referenced element.
This commit is contained in:
parent
31d536912c
commit
b322abd8d0
2 changed files with 6 additions and 0 deletions
|
@ -1679,6 +1679,11 @@ void Document::completely_finish_loading()
|
|||
container->dispatch_event(DOM::Event::create(container->realm(), HTML::EventNames::load).release_value_but_fixme_should_propagate_errors());
|
||||
});
|
||||
}
|
||||
|
||||
for (auto& document_observer : m_document_observers) {
|
||||
if (document_observer->document_fully_loaded)
|
||||
document_observer->document_fully_loaded();
|
||||
}
|
||||
}
|
||||
|
||||
DeprecatedString Document::cookie(Cookie::Source source)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue