mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23: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
|
@ -98,7 +98,7 @@ use std::sync::atomic::{Ordering, AtomicBool};
|
|||
use std::sync::mpsc::{Receiver, Select, Sender, channel};
|
||||
use std::sync::{Arc, Mutex};
|
||||
use time::{Tm, now};
|
||||
use url::{Url, UrlParser};
|
||||
use url::Url;
|
||||
use util::opts;
|
||||
use util::str::DOMString;
|
||||
use util::task;
|
||||
|
@ -1840,7 +1840,7 @@ impl ScriptTask {
|
|||
.and_then(|href| {
|
||||
let value = href.value();
|
||||
let url = document.url();
|
||||
UrlParser::new().base_url(&url).parse(&value).map(|url| url.serialize()).ok()
|
||||
url.join(&value).map(|url| url.serialize()).ok()
|
||||
});
|
||||
let event = ConstellationMsg::NodeStatus(status);
|
||||
let ConstellationChan(ref chan) = self.constellation_chan;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue