mirror of
https://github.com/servo/servo
synced 2026-05-01 03:47:53 +02:00
Implement discarding Document objects to reclaim space.
This commit is contained in:
@@ -1346,7 +1346,7 @@ impl ScriptThread {
|
||||
fn handle_freeze_msg(&self, id: PipelineId) {
|
||||
let window = self.documents.borrow().find_window(id);
|
||||
if let Some(window) = window {
|
||||
window.upcast::<GlobalScope>().suspend();
|
||||
window.freeze();
|
||||
return;
|
||||
}
|
||||
let mut loads = self.incomplete_loads.borrow_mut();
|
||||
|
||||
Reference in New Issue
Block a user