aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/window.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/window.rs')
-rw-r--r--components/script/dom/window.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs
index 36916f3ef51..6782047c5a2 100644
--- a/components/script/dom/window.rs
+++ b/components/script/dom/window.rs
@@ -1399,13 +1399,6 @@ impl Window {
}
pub fn clear_js_runtime(&self) {
- // We tear down the active document, which causes all the attached
- // nodes to dispose of their layout data. This messages the layout
- // thread, informing it that it can safely free the memory.
- self.Document()
- .upcast::<Node>()
- .teardown(self.layout_chan());
-
// Remove the infra for managing messageports and broadcast channels.
self.upcast::<GlobalScope>().remove_web_messaging_infra();