aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
authorAlan Jeffrey <ajeffrey@mozilla.com>2016-11-18 20:50:53 -0600
committerAlan Jeffrey <ajeffrey@mozilla.com>2017-01-04 11:29:31 +0000
commit78c87ea8d7bf6cbc2e2a8ea8a27e764222baf43d (patch)
tree9022a71a5540051be8bd3b79068155bd1bc93cc5 /components/script/script_thread.rs
parent955e2851bf715f2d7ec7898fdf9730b24fe69115 (diff)
downloadservo-78c87ea8d7bf6cbc2e2a8ea8a27e764222baf43d.tar.gz
servo-78c87ea8d7bf6cbc2e2a8ea8a27e764222baf43d.zip
Implement discarding Document objects to reclaim space.
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index 065d214a323..563e4c52529 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -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();