aboutsummaryrefslogtreecommitdiffstats
path: root/components/constellation/browsingcontext.rs
diff options
context:
space:
mode:
authorJonathan Kingston <jonathan@jooped.co.uk>2020-11-24 02:06:08 +0000
committerJonathan Kingston <jonathan@jooped.co.uk>2020-11-25 18:30:50 +0000
commit0e1479cc847333c81a37d11f0f65f0304972ba3c (patch)
treec2f505ce162f481639d9115f19ba96421c552253 /components/constellation/browsingcontext.rs
parent20ef49e035596136ce43b47a66b27c8b5c25967b (diff)
downloadservo-0e1479cc847333c81a37d11f0f65f0304972ba3c.tar.gz
servo-0e1479cc847333c81a37d11f0f65f0304972ba3c.zip
Add creation url and Secure Contexts
Diffstat (limited to 'components/constellation/browsingcontext.rs')
-rw-r--r--components/constellation/browsingcontext.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/components/constellation/browsingcontext.rs b/components/constellation/browsingcontext.rs
index d90cb79cadd..4f15638fcff 100644
--- a/components/constellation/browsingcontext.rs
+++ b/components/constellation/browsingcontext.rs
@@ -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,