mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove insaccessible history states
This commit is contained in:
parent
087bd20b6d
commit
c08ad45681
6 changed files with 70 additions and 12 deletions
|
@ -252,6 +252,12 @@ impl ResourceChannelManager {
|
|||
let mut history_states = http_state.history_states.write().unwrap();
|
||||
history_states.insert(history_state_id, history_state);
|
||||
}
|
||||
CoreResourceMsg::RemoveHistoryStates(states_to_remove) => {
|
||||
let mut history_states = http_state.history_states.write().unwrap();
|
||||
for history_state in states_to_remove {
|
||||
history_states.remove(&history_state);
|
||||
}
|
||||
}
|
||||
CoreResourceMsg::Synchronize(sender) => {
|
||||
let _ = sender.send(());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue