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.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/components/script/dom/history.rs b/components/script/dom/history.rs
index b158a9d44fd..e18e06cecea 100644
--- a/components/script/dom/history.rs
+++ b/components/script/dom/history.rs
@@ -102,6 +102,13 @@ impl History {
}
}
+ pub fn remove_states(&self, states: Vec<HistoryStateId>) {
+ let _ = self.window
+ .upcast::<GlobalScope>()
+ .resource_threads()
+ .send(CoreResourceMsg::RemoveHistoryStates(states));
+ }
+
// https://html.spec.whatwg.org/multipage/#dom-history-pushstate
// https://html.spec.whatwg.org/multipage/#dom-history-replacestate
fn push_or_replace_state(&self,