aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmliframeelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/htmliframeelement.rs')
-rw-r--r--components/script/dom/htmliframeelement.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/dom/htmliframeelement.rs b/components/script/dom/htmliframeelement.rs
index bfef6cebbe6..04127ef1b17 100644
--- a/components/script/dom/htmliframeelement.rs
+++ b/components/script/dom/htmliframeelement.rs
@@ -271,6 +271,7 @@ impl HTMLIFrameElement {
document.get_referrer_policy(),
Some(window.as_global_scope().is_secure_context()),
Some(document.insecure_requests_policy()),
+ document.has_trustworthy_ancestor_or_current_origin(),
);
let element = self.upcast::<Element>();
load_data.srcdoc = String::from(element.get_string_attribute(&local_name!("srcdoc")));
@@ -362,6 +363,7 @@ impl HTMLIFrameElement {
referrer_policy,
Some(window.as_global_scope().is_secure_context()),
Some(document.insecure_requests_policy()),
+ document.has_trustworthy_ancestor_or_current_origin(),
);
let pipeline_id = self.pipeline_id();
@@ -407,6 +409,7 @@ impl HTMLIFrameElement {
document.get_referrer_policy(),
Some(window.as_global_scope().is_secure_context()),
Some(document.insecure_requests_policy()),
+ document.has_trustworthy_ancestor_or_current_origin(),
);
let browsing_context_id = BrowsingContextId::new();
let webview_id = window.window_proxy().webview_id();