diff options
author | Gregory Terzian <gterzian@users.noreply.github.com> | 2019-05-12 17:37:19 +0800 |
---|---|---|
committer | Gregory Terzian <gterzian@users.noreply.github.com> | 2019-07-18 12:03:45 +0800 |
commit | 571beec179fe9fd5fff2c12b3c5dfa0a5d93df01 (patch) | |
tree | 2eda42b78fa99fd2cd51d733519d5ae9d8678a66 /components/constellation/pipeline.rs | |
parent | 973a3448a459464b79ea0ef5fb46141176cc7643 (diff) | |
download | servo-571beec179fe9fd5fff2c12b3c5dfa0a5d93df01.tar.gz servo-571beec179fe9fd5fff2c12b3c5dfa0a5d93df01.zip |
clean-up navigation
security: check target and source origin before executing JS url
implement replacement-enabled flag as a HistoryEntryReplacement enum
add source origin string on loaddata
add LoadOrigin
iframe: remove optional load-data
auxiliaries: add load-data into info
constellation: remove url from Pipeline::new
check load origin: link to whatwg issue
switch loadorigin toplevel to constellation
Diffstat (limited to 'components/constellation/pipeline.rs')
-rw-r--r-- | components/constellation/pipeline.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/components/constellation/pipeline.rs b/components/constellation/pipeline.rs index 8c770a1c274..a5757664497 100644 --- a/components/constellation/pipeline.rs +++ b/components/constellation/pipeline.rs @@ -215,8 +215,6 @@ impl Pipeline { device_pixel_ratio: state.device_pixel_ratio, }; - let url = state.load_data.url.clone(); - let (script_chan, sampler_chan) = match state.event_loop { Some(script_chan) => { let new_layout_info = NewLayoutInfo { @@ -336,7 +334,6 @@ impl Pipeline { script_chan, pipeline_chan, state.compositor_proxy, - url, state.prev_visibility, state.load_data, ); @@ -356,7 +353,6 @@ impl Pipeline { event_loop: Rc<EventLoop>, layout_chan: IpcSender<LayoutControlMsg>, compositor_proxy: CompositorProxy, - url: ServoUrl, is_visible: bool, load_data: LoadData, ) -> Pipeline { @@ -368,7 +364,7 @@ impl Pipeline { event_loop: event_loop, layout_chan: layout_chan, compositor_proxy: compositor_proxy, - url: url, + url: load_data.url.clone(), children: vec![], running_animations: false, load_data: load_data, |