aboutsummaryrefslogtreecommitdiffstats
path: root/components/net/chrome_loader.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/net/chrome_loader.rs')
-rw-r--r--components/net/chrome_loader.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/net/chrome_loader.rs b/components/net/chrome_loader.rs
index b019141121e..5e14d130fb1 100644
--- a/components/net/chrome_loader.rs
+++ b/components/net/chrome_loader.rs
@@ -6,13 +6,13 @@ use file_loader;
use mime_classifier::MimeClassifier;
use net_traits::{LoadConsumer, LoadData, NetworkError};
use resource_thread::{CancellationListener, send_error};
+use servo_url::ServoUrl;
use std::fs::canonicalize;
use std::sync::Arc;
-use url::Url;
use url::percent_encoding::percent_decode;
use util::resource_files::resources_dir_path;
-pub fn resolve_chrome_url(url: &Url) -> Result<Url, ()> {
+pub fn resolve_chrome_url(url: &ServoUrl) -> Result<ServoUrl, ()> {
assert_eq!(url.scheme(), "chrome");
if url.host_str() != Some("resources") {
return Err(())
@@ -29,7 +29,7 @@ pub fn resolve_chrome_url(url: &Url) -> Result<Url, ()> {
}
match canonicalize(path) {
Ok(ref path) if path.starts_with(&resources) && path.exists() => {
- Ok(Url::from_file_path(path).unwrap())
+ Ok(ServoUrl::from_file_path(path).unwrap())
}
_ => Err(())
}