mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +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
|
@ -32,7 +32,7 @@ use script_traits::ScriptMsg as ConstellationMsg;
|
|||
use std::ascii::AsciiExt;
|
||||
use std::cell::Cell;
|
||||
use string_cache::Atom;
|
||||
use url::{Url, UrlParser};
|
||||
use url::Url;
|
||||
use util::prefs;
|
||||
use util::str::DOMString;
|
||||
use util::str::{self, LengthOrPercentageOrAuto};
|
||||
|
@ -74,8 +74,7 @@ impl HTMLIFrameElement {
|
|||
None
|
||||
} else {
|
||||
let window = window_from_node(self);
|
||||
UrlParser::new().base_url(&window.get_url())
|
||||
.parse(&url).ok()
|
||||
window.get_url().join(&url).ok()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue