diff options
author | Paul Rouget <me@paulrouget.com> | 2016-01-06 06:19:47 +0100 |
---|---|---|
committer | Paul Rouget <me@paulrouget.com> | 2016-01-06 06:49:49 +0100 |
commit | 268e2854396e1b02e12a4302970d9762b0349723 (patch) | |
tree | 6307c51bfa5e4aaf47cfcc976340a26b5d32b200 /components/script/script_task.rs | |
parent | ea4206e36259cd464480fed3ca9ac6857568bd7c (diff) | |
download | servo-268e2854396e1b02e12a4302970d9762b0349723.tar.gz servo-268e2854396e1b02e12a4302970d9762b0349723.zip |
update pipeline url after redirections
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r-- | components/script/script_task.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs index 6d9b2bee301..92a55c62ada 100644 --- a/components/script/script_task.rs +++ b/components/script/script_task.rs @@ -1648,6 +1648,10 @@ impl ScriptTask { // send the final url to the layout task. let LayoutChan(ref chan) = incomplete.layout_chan; chan.send(layout_interface::Msg::SetFinalUrl(final_url.clone())).unwrap(); + + // update the pipeline url + let ConstellationChan(ref chan) = self.constellation_chan; + chan.send(ConstellationMsg::SetFinalUrl(incomplete.pipeline_id, final_url.clone())).unwrap(); } debug!("ScriptTask: loading {} on page {:?}", incomplete.url.serialize(), incomplete.pipeline_id); |