From ef50a64598afe6096ae7649a6db2ddf54f6e13b1 Mon Sep 17 00:00:00 2001 From: Alan Jeffrey Date: Wed, 4 Jan 2017 15:22:46 +0000 Subject: [PATCH] Updated comment. --- components/script/dom/window.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs index ef992379307..37bf817ed7a 100644 --- a/components/script/dom/window.rs +++ b/components/script/dom/window.rs @@ -1453,7 +1453,10 @@ impl Window { pub fn freeze(&self) { self.upcast::().suspend(); - // A hint to the JS runtime that now would be a good time to GC this window. + // A hint to the JS runtime that now would be a good time to + // GC any unreachable objects generated by user script, + // or unattached DOM nodes. Attached DOM nodes can't be GCd yet, + // as the document might be thawed later. self.Gc(); }