mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Add creation url and Secure Contexts
This commit is contained in:
parent
20ef49e035
commit
0e1479cc84
25 changed files with 207 additions and 9 deletions
|
@ -24,6 +24,9 @@ pub struct NewBrowsingContextInfo {
|
|||
/// Whether this browsing context is in private browsing mode.
|
||||
pub is_private: bool,
|
||||
|
||||
/// Whether this browsing context inherits a secure context.
|
||||
pub inherited_secure_context: Option<bool>,
|
||||
|
||||
/// Whether this browsing context should be treated as visible for the
|
||||
/// purposes of scheduling and resource management.
|
||||
pub is_visible: bool,
|
||||
|
@ -51,6 +54,9 @@ pub struct BrowsingContext {
|
|||
/// Whether this browsing context is in private browsing mode.
|
||||
pub is_private: bool,
|
||||
|
||||
/// Whether this browsing context inherits a secure context.
|
||||
pub inherited_secure_context: Option<bool>,
|
||||
|
||||
/// Whether this browsing context should be treated as visible for the
|
||||
/// purposes of scheduling and resource management.
|
||||
pub is_visible: bool,
|
||||
|
@ -78,6 +84,7 @@ impl BrowsingContext {
|
|||
parent_pipeline_id: Option<PipelineId>,
|
||||
size: Size2D<f32, CSSPixel>,
|
||||
is_private: bool,
|
||||
inherited_secure_context: Option<bool>,
|
||||
is_visible: bool,
|
||||
) -> BrowsingContext {
|
||||
let mut pipelines = HashSet::new();
|
||||
|
@ -88,6 +95,7 @@ impl BrowsingContext {
|
|||
top_level_id,
|
||||
size,
|
||||
is_private,
|
||||
inherited_secure_context,
|
||||
is_visible,
|
||||
pipeline_id,
|
||||
parent_pipeline_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue