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.rs10
1 files changed, 3 insertions, 7 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs
index cb9d5abdf07..37c62543526 100644
--- a/components/script/dom/window.rs
+++ b/components/script/dom/window.rs
@@ -1488,21 +1488,17 @@ impl Window {
None
}
- pub fn freeze(&self) {
+ pub fn suspend(&self) {
self.upcast::<GlobalScope>().suspend();
// 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.
+ // as the document might be reactivated later.
self.Gc();
}
- pub fn thaw(&self) {
+ pub fn resume(&self) {
self.upcast::<GlobalScope>().resume();
-
- // Push the document title to the compositor since we are
- // activating this document due to a navigation.
- self.Document().title_changed();
}
pub fn need_emit_timeline_marker(&self, timeline_type: TimelineMarkerType) -> bool {