LibWeb: Keep delaying the load event on concurrent <object> tasks

If we queue the <object> representation task multiple times in a row, we
would end up clearing the delayer after the first task completed. We
must continue delaying the load event until the last task completes.

This becomes an issue in an upcoming commit to import the acid2 test.
This commit is contained in:
Timothy Flynn 2025-05-22 12:16:11 -04:00 committed by Tim Flynn
parent 874e094ed8
commit 1bc7a52587
Notes: github-actions[bot] 2025-05-22 21:45:53 +00:00
2 changed files with 7 additions and 7 deletions

View file

@ -95,8 +95,8 @@ private:
GC::Ptr<DOM::DocumentObserver> m_document_observer;
Optional<DOM::DocumentLoadEventDelayer> m_document_load_event_delayer_for_object_representation_task;
Optional<DOM::DocumentLoadEventDelayer> m_document_load_event_delayer_for_resource_load;
Vector<DOM::DocumentLoadEventDelayer> m_document_load_event_delayer_for_object_representation_task;
Vector<DOM::DocumentLoadEventDelayer> m_document_load_event_delayer_for_resource_load;
};
}