Skip to content

Commit

Permalink
Fix private browsing mode preservation when loading URL
Browse files Browse the repository at this point in the history
  • Loading branch information
vimpunk committed Sep 14, 2018
1 parent 170e232 commit 68b6bbd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions components/constellation/constellation.rs
Expand Up @@ -2064,12 +2064,13 @@ where
return None;
},
};
let (window_size, pipeline_id, parent_pipeline_id, is_visible) =
let (window_size, pipeline_id, parent_pipeline_id, is_private, is_visible) =
match self.browsing_contexts.get(&browsing_context_id) {
Some(ctx) => (
ctx.size,
ctx.pipeline_id,
ctx.parent_pipeline_id,
ctx.is_private,
ctx.is_visible,
),
None => {
Expand Down Expand Up @@ -2141,9 +2142,6 @@ where

let new_pipeline_id = PipelineId::new();
let sandbox = IFrameSandboxState::IFrameUnsandboxed;
// TODO(mandreyel): why is this false? Should we not inherit the
// privacy of the (existing) browsing context?
let is_private = false;
self.new_pipeline(
new_pipeline_id,
browsing_context_id,
Expand Down

0 comments on commit 68b6bbd

Please sign in to comment.