Bring back DOM GC checkpoint to script_thread (#35949)

Signed-off-by: Sebastian C <sebsebmc@gmail.com>
This commit is contained in:
Sebastian C 2025-03-14 02:40:04 -05:00 committed by GitHub
parent 7cf2fc88a0
commit 7f2f51b59d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1530,6 +1530,13 @@ impl ScriptThread {
self.perform_a_microtask_checkpoint(can_gc);
}
for (_, doc) in self.documents.borrow().iter() {
let window = doc.window();
window
.upcast::<GlobalScope>()
.perform_a_dom_garbage_collection_checkpoint();
}
{
// https://html.spec.whatwg.org/multipage/#the-end step 6
let mut docs = self.docs_with_no_blocking_loads.borrow_mut();