Skip to content

Truly independent web browser

LibWeb: Root the SMIL time containers a loaded document begins

Shannon Boothdb6446a86060
diff --git a/Libraries/LibWeb/DOM/Document.cpp b/Libraries/LibWeb/DOM/Document.cpp
index 14cd0735ca0..5af92754d43 100644
--- a/Libraries/LibWeb/DOM/Document.cpp
+++ b/Libraries/LibWeb/DOM/Document.cpp
@@ -5194,7 +5194,8 @@ void Document::completely_finish_loading()
if (!m_completely_loaded_time.has_value())
m_completely_loaded_time = AK::UnixDateTime::now();
- for (auto& time_container : exchange(m_smil_time_containers_to_begin, {}))
+ GC::RootVector time_containers_to_begin { exchange(m_smil_time_containers_to_begin, {}) };
+ for (auto& time_container : time_containers_to_begin)
time_container->begin();
auto navigable = this->navigable();