aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/script_task.rs
diff options
context:
space:
mode:
authorbors-servo <release+servo@mozilla.com>2013-09-24 12:45:44 -0700
committerbors-servo <release+servo@mozilla.com>2013-09-24 12:45:44 -0700
commitb7d186dec2de90707b8e0fc09551e543a0744282 (patch)
treef020d8c538daf5c4173c3b2e7626fe4eea723a6c /src/components/script/script_task.rs
parent401176b72d9ac9e4493ca27fca5aa5450500a333 (diff)
parent1c6de361b735a80034edb719d997e6c8b6cd8fef (diff)
downloadservo-b7d186dec2de90707b8e0fc09551e543a0744282.tar.gz
servo-b7d186dec2de90707b8e0fc09551e543a0744282.zip
auto merge of #977 : kmcallister/servo/redirect, r=jdm
Diffstat (limited to 'src/components/script/script_task.rs')
-rw-r--r--src/components/script/script_task.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/script/script_task.rs b/src/components/script/script_task.rs
index ab184fe67e1..d97db4189b6 100644
--- a/src/components/script/script_task.rs
+++ b/src/components/script/script_task.rs
@@ -702,7 +702,7 @@ impl ScriptTask {
page.next_subpage_id.clone(),
self.constellation_chan.clone());
- let HtmlParserResult {root, discovery_port} = html_parsing_result;
+ let HtmlParserResult {root, discovery_port, url: final_url} = html_parsing_result;
let document = HTMLDocument::new(root, Some(window));
@@ -711,7 +711,7 @@ impl ScriptTask {
document: document,
window: window,
});
- page.url = Some((url.clone(), true));
+ page.url = Some((final_url, true));
// Send style sheets over to layout.
//