diff options
Diffstat (limited to 'components/script/dom/history.rs')
-rw-r--r-- | components/script/dom/history.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/history.rs b/components/script/dom/history.rs index 559b39f9b2c..5ced543d728 100644 --- a/components/script/dom/history.rs +++ b/components/script/dom/history.rs @@ -38,7 +38,7 @@ impl History { impl History { fn traverse_history(&self, direction: TraversalDirection) { - let pipeline = self.window.pipeline(); + let pipeline = self.window.pipeline_id(); let msg = ConstellationMsg::TraverseHistory(Some(pipeline), direction); let _ = self.window.constellation_chan().send(msg); } @@ -47,7 +47,7 @@ impl History { impl HistoryMethods for History { // https://html.spec.whatwg.org/multipage/#dom-history-length fn Length(&self) -> u32 { - let pipeline = self.window.pipeline(); + let pipeline = self.window.pipeline_id(); let (sender, recv) = ipc::channel().expect("Failed to create channel to send jsh length."); let msg = ConstellationMsg::JointSessionHistoryLength(pipeline, sender); let _ = self.window.constellation_chan().send(msg); |