mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Fix private browsing mode preservation when loading URL
This commit is contained in:
parent
170e232606
commit
68b6bbd35f
1 changed files with 2 additions and 4 deletions
|
@ -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 => {
|
||||
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue