aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/script_task.rs
diff options
context:
space:
mode:
authorKeegan McAllister <kmcallister@mozilla.com>2013-10-29 18:22:42 -0700
committerJack Moffitt <jack@metajack.im>2013-10-31 14:58:55 -0600
commitcbcd04ffa82146aa4b68f27814d3844235ac1344 (patch)
tree47f827e3b05df1fdf40e6938b2e80726e4de7f99 /src/components/script/script_task.rs
parentda6c27c421b6f7bd6e805070e9b1b6a5f9e67621 (diff)
downloadservo-cbcd04ffa82146aa4b68f27814d3844235ac1344.tar.gz
servo-cbcd04ffa82146aa4b68f27814d3844235ac1344.zip
Store the Page's final URL before parsing
We were parsing URLs like //bits.wikimedia.org/static-1.22wmf22/skins/vector/images/search-ltr.png?303-4 as local filenames because HTMLImageElement::update_image didn't have a current_url to pass to make_url().
Diffstat (limited to 'src/components/script/script_task.rs')
-rw-r--r--src/components/script/script_task.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/components/script/script_task.rs b/src/components/script/script_task.rs
index a9dbf66d18e..5966781a6dc 100644
--- a/src/components/script/script_task.rs
+++ b/src/components/script/script_task.rs
@@ -699,14 +699,13 @@ impl ScriptTask {
self.constellation_chan.clone());
- let HtmlParserResult {root, discovery_port, url: final_url} = html_parsing_result;
+ let HtmlParserResult {root, discovery_port} = html_parsing_result;
// Create the root frame.
page.frame = Some(Frame {
document: document,
window: window,
});
- page.url = Some((final_url, true));
// Send style sheets over to layout.
//