Skip to content

Commit

Permalink
Properly climb parent hierarchy in send_frame_tree
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrewster committed Jun 9, 2017
1 parent 310408a commit fc0854c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions components/constellation/constellation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -786,6 +786,7 @@ impl<Message, LTF, STF> Constellation<Message, LTF, STF>
top_level_id: TopLevelBrowsingContextId,
pipeline_id: PipelineId,
load_data: LoadData) {
debug!("Creating new browsing context {}", browsing_context_id);
let browsing_context = BrowsingContext::new(browsing_context_id, top_level_id, pipeline_id, load_data);
self.browsing_contexts.insert(browsing_context_id, browsing_context);

Expand Down Expand Up @@ -2857,11 +2858,11 @@ impl<Message, LTF, STF> Constellation<Message, LTF, STF>

while let Some(pipeline) = self.pipelines.get(&pipeline_id) {
match pipeline.parent_info {
Some((parent_id, _)) => {
Some((parent_id, _)) => pipeline_id = parent_id,
None => {
browsing_context_id = pipeline.browsing_context_id;
pipeline_id = parent_id;
break;
},
None => break,
}
}

Expand Down

0 comments on commit fc0854c

Please sign in to comment.