mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Remove insaccessible history states
This commit is contained in:
parent
087bd20b6d
commit
c08ad45681
6 changed files with 70 additions and 12 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue