diff options
author | Jonathan Kingston <jonathan@jooped.co.uk> | 2020-11-24 02:06:08 +0000 |
---|---|---|
committer | Jonathan Kingston <jonathan@jooped.co.uk> | 2020-11-25 18:30:50 +0000 |
commit | 0e1479cc847333c81a37d11f0f65f0304972ba3c (patch) | |
tree | c2f505ce162f481639d9115f19ba96421c552253 /components/script/dom/htmlanchorelement.rs | |
parent | 20ef49e035596136ce43b47a66b27c8b5c25967b (diff) | |
download | servo-0e1479cc847333c81a37d11f0f65f0304972ba3c.tar.gz servo-0e1479cc847333c81a37d11f0f65f0304972ba3c.zip |
Add creation url and Secure Contexts
Diffstat (limited to 'components/script/dom/htmlanchorelement.rs')
-rw-r--r-- | components/script/dom/htmlanchorelement.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/htmlanchorelement.rs b/components/script/dom/htmlanchorelement.rs index be246203121..e6583329880 100644 --- a/components/script/dom/htmlanchorelement.rs +++ b/components/script/dom/htmlanchorelement.rs @@ -703,12 +703,14 @@ pub fn follow_hyperlink(subject: &Element, hyperlink_suffix: Option<String>) { // Step 14 let pipeline_id = target_window.upcast::<GlobalScope>().pipeline_id(); + let secure = target_window.upcast::<GlobalScope>().is_secure_context(); let load_data = LoadData::new( LoadOrigin::Script(document.origin().immutable().clone()), url, Some(pipeline_id), referrer, referrer_policy, + Some(secure), ); let target = Trusted::new(target_window); let task = task!(navigate_follow_hyperlink: move || { |