Remove insaccessible history states

This commit is contained in:
Connor Brewster 2018-04-17 19:21:51 -05:00
parent 087bd20b6d
commit c08ad45681
6 changed files with 70 additions and 12 deletions

View file

@ -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,