1
0
Fork 0
mirror of https://github.com/servo/servo.git synced 2025-07-05 22:43:40 +01:00

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().
This commit is contained in:
Keegan McAllister 2013-10-29 18:22:42 -07:00 committed by Jack Moffitt
parent da6c27c421
commit cbcd04ffa8
2 changed files with 12 additions and 4 deletions
src/components/script

View file

@ -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.
//