diff options
author | Russell Cousineau <miller.time.baby@gmail.com> | 2019-03-24 23:04:17 -0700 |
---|---|---|
committer | Russell Cousineau <miller.time.baby@gmail.com> | 2019-04-19 16:50:38 -0700 |
commit | 2440e0f98ade12cf595fe7c791a1065b29b53d74 (patch) | |
tree | ea5b333151d9580ff8c690994570272f3785d305 /components/script/dom/htmliframeelement.rs | |
parent | f9c58ccd401253b16916d173df621b1abc27f103 (diff) | |
download | servo-2440e0f98ade12cf595fe7c791a1065b29b53d74.tar.gz servo-2440e0f98ade12cf595fe7c791a1065b29b53d74.zip |
set referrer in window.load_url
- this conforms to follow-hyperlinks spec step 13
- this conforms to window-open spec step 14.3
- replace uses of `referrer_url` with `referrer`
- in Request class, change "no-referrer" to ""
- set websocket fetch referrer to "no-referrer"
Diffstat (limited to 'components/script/dom/htmliframeelement.rs')
-rw-r--r-- | components/script/dom/htmliframeelement.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/htmliframeelement.rs b/components/script/dom/htmliframeelement.rs index 822484a7991..24cea710450 100644 --- a/components/script/dom/htmliframeelement.rs +++ b/components/script/dom/htmliframeelement.rs @@ -30,6 +30,7 @@ use euclid::TypedSize2D; use html5ever::{LocalName, Prefix}; use ipc_channel::ipc; use msg::constellation_msg::{BrowsingContextId, PipelineId, TopLevelBrowsingContextId}; +use net_traits::request::Referrer; use profile_traits::ipc as ProfiledIpc; use script_layout_interface::message::ReflowGoal; use script_traits::IFrameSandboxState::{IFrameSandboxed, IFrameUnsandboxed}; @@ -269,8 +270,8 @@ impl HTMLIFrameElement { let load_data = LoadData::new( url, creator_pipeline_id, + Some(Referrer::ReferrerUrl(document.url())), document.get_referrer_policy(), - Some(document.url()), ); let pipeline_id = self.pipeline_id(); @@ -295,8 +296,8 @@ impl HTMLIFrameElement { let load_data = LoadData::new( url, pipeline_id, + Some(Referrer::ReferrerUrl(document.url().clone())), document.get_referrer_policy(), - Some(document.url().clone()), ); let browsing_context_id = BrowsingContextId::new(); let top_level_browsing_context_id = window.window_proxy().top_level_browsing_context_id(); |