mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Use Url.join instead of UrlParser.base_url(...).parse (#9002)
This commit is contained in:
parent
6764cf0ee9
commit
11234f5370
41 changed files with 58 additions and 64 deletions
|
@ -22,7 +22,7 @@ use script_traits::ScriptMsg as ConstellationMsg;
|
|||
use std::rc::Rc;
|
||||
use string_cache::Atom;
|
||||
use time;
|
||||
use url::{Url, UrlParser};
|
||||
use url::Url;
|
||||
use util::str::DOMString;
|
||||
|
||||
/// How long we should wait before performing the initial reflow after `<body>` is parsed, in
|
||||
|
@ -157,7 +157,7 @@ impl VirtualMethods for HTMLBodyElement {
|
|||
*self.background.borrow_mut() = mutation.new_value(attr).and_then(|value| {
|
||||
let document = document_from_node(self);
|
||||
let base = document.url();
|
||||
UrlParser::new().base_url(&base).parse(&value).ok()
|
||||
base.join(&value).ok()
|
||||
});
|
||||
true
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue