aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/history.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/history.rs')
-rw-r--r--components/script/dom/history.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/history.rs b/components/script/dom/history.rs
index 9023a397c66..663499da38f 100644
--- a/components/script/dom/history.rs
+++ b/components/script/dom/history.rs
@@ -117,7 +117,7 @@ impl History {
blobs: None,
};
let global_scope = self.window.upcast::<GlobalScope>();
- rooted!(in(*global_scope.get_cx()) let mut state = UndefinedValue());
+ rooted!(in(*GlobalScope::get_cx()) let mut state = UndefinedValue());
if let Err(_) = structuredclone::read(&global_scope, data, state.handle_mut()) {
warn!("Error reading structuredclone data");
}