diff options
author | Arnaud Marant <arnaudmarant@gmail.com> | 2015-09-12 13:09:41 +0200 |
---|---|---|
committer | Keith Yeung <kungfukeith11@gmail.com> | 2015-12-09 01:58:11 -0800 |
commit | 239f1ae1a7f01b8acdea6cbe327a6b47b775e9cb (patch) | |
tree | f0fddb37fdb6897b3e3993beeafbc171ab88afa2 /components/script/script_task.rs | |
parent | 8ba470d79fadf8787eb139af9047b0b4a10fe25c (diff) | |
download | servo-239f1ae1a7f01b8acdea6cbe327a6b47b775e9cb.tar.gz servo-239f1ae1a7f01b8acdea6cbe327a6b47b775e9cb.zip |
fix for Layout memory reporter uses pre-redirect url #6872
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r-- | components/script/script_task.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs index f0ea6bd1354..22da6c81a98 100644 --- a/components/script/script_task.rs +++ b/components/script/script_task.rs @@ -1549,6 +1549,11 @@ impl ScriptTask { /// objects, parses HTML and CSS, and kicks off initial layout. fn load(&self, metadata: Metadata, incomplete: InProgressLoad) -> ParserRoot { let final_url = metadata.final_url.clone(); + { + // 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(); + } debug!("ScriptTask: loading {} on page {:?}", incomplete.url.serialize(), incomplete.pipeline_id); // We should either be initializing a root page or loading a child page of an |