mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Bring back DOM GC checkpoint to script_thread (#35949)
Signed-off-by: Sebastian C <sebsebmc@gmail.com>
This commit is contained in:
parent
7cf2fc88a0
commit
7f2f51b59d
1 changed files with 7 additions and 0 deletions
|
@ -1530,6 +1530,13 @@ impl ScriptThread {
|
||||||
self.perform_a_microtask_checkpoint(can_gc);
|
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
|
// https://html.spec.whatwg.org/multipage/#the-end step 6
|
||||||
let mut docs = self.docs_with_no_blocking_loads.borrow_mut();
|
let mut docs = self.docs_with_no_blocking_loads.borrow_mut();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue