From cbcd04ffa82146aa4b68f27814d3844235ac1344 Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Tue, 29 Oct 2013 18:22:42 -0700 Subject: 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(). --- src/components/script/script_task.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/components/script/script_task.rs') 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. // -- cgit v1.2.3