mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-13 22:01:53 +00:00
LibWeb: Report if anything is delaying load event, not the count
Some elements that delay the load event are more complicated than a simple count will allow for. We'll implement those in a bit!
This commit is contained in:
parent
6154681718
commit
6c5450f9ce
Notes:
sideshowbarker
2024-07-16 22:34:39 +09:00
Author: https://github.com/AtkinsSJ
Commit: 6c5450f9ce
Pull-request: https://github.com/SerenityOS/serenity/pull/22045
Issue: https://github.com/SerenityOS/serenity/issues/22012
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/kalenikaliaksandr ✅
5 changed files with 14 additions and 4 deletions
|
@ -304,9 +304,8 @@ void HTMLParser::the_end()
|
|||
});
|
||||
|
||||
// 8. Spin the event loop until there is nothing that delays the load event in the Document.
|
||||
// FIXME: Track down all the things that are supposed to delay the load event.
|
||||
main_thread_event_loop().spin_until([&] {
|
||||
return m_document->number_of_things_delaying_the_load_event() == 0;
|
||||
return !m_document->anything_is_delaying_the_load_event();
|
||||
});
|
||||
|
||||
// 9. Queue a global task on the DOM manipulation task source given the Document's relevant global object to run the following steps:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue