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:
parent
da6c27c421
commit
cbcd04ffa8
2 changed files with 12 additions and 4 deletions
src/components/script
|
@ -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.
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue