mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
handle pipeline exiting properly
This commit is contained in:
parent
e9888b299c
commit
b7e2eab2f4
1 changed files with 7 additions and 1 deletions
|
@ -636,7 +636,13 @@ impl Constellation {
|
|||
Some(constellation_msg::Load) => {
|
||||
let evicted = self.navigation_context.navigate(frame_tree);
|
||||
for evicted.iter().advance |frame_tree| {
|
||||
frame_tree.pipeline.exit();
|
||||
// exit any pipelines that don't exist outside the evicted frame trees
|
||||
for frame_tree.iter().advance |frame| {
|
||||
if self.navigation_context.find(frame.pipeline.id).is_none() {
|
||||
frame_tree.pipeline.exit();
|
||||
self.pipelines.remove(&frame_tree.pipeline.id);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue