Skip to content

Commit

Permalink
Update pipeline activity before closing pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrewster committed Apr 11, 2018
1 parent 5182c81 commit 004549d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/constellation/constellation.rs
Expand Up @@ -2438,12 +2438,13 @@ impl<Message, LTF, STF> Constellation<Message, LTF, STF>
.collect::<Vec<_>>()
};

self.update_activity(old_pipeline_id);
self.update_activity(change.new_pipeline_id);

for pipeline_id in pipelines_to_close {
self.close_pipeline(pipeline_id, DiscardBrowsingContext::No, ExitPipelineMode::Normal);
}

self.update_activity(old_pipeline_id);
self.update_activity(change.new_pipeline_id);
self.notify_history_changed(change.top_level_browsing_context_id);
}
}
Expand Down

0 comments on commit 004549d

Please sign in to comment.