aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/script_task.rs
diff options
context:
space:
mode:
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.
//