aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2016-02-26 17:01:51 +0100
committerSimon Sapin <simon.sapin@exyr.org>2016-04-14 15:35:28 +0200
commit6889f37d9ed1b147146fa1461ed8d9b1d151745c (patch)
treede5760262a46742ee42b95b022051f401a6e4810 /components/script/script_thread.rs
parent87d5424d4d5eb10f91ddb6bfaf6ab1eba2cd49b3 (diff)
downloadservo-6889f37d9ed1b147146fa1461ed8d9b1d151745c.tar.gz
servo-6889f37d9ed1b147146fa1461ed8d9b1d151745c.zip
Remove the url! plugin.
In rust-url 1.0 the `Url` struct is going to have private fields, and there is no way to to create an aribitrary one without going through the parser. The plugin never had a clear demonstrated performance benefit, it was made mostly because it was possible and relatively easy at the time.
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index 7cb24e110bc..7029f34e753 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -1880,7 +1880,7 @@ impl ScriptThread {
};
if load_data.url.scheme == "javascript" {
- load_data.url = url!("about:blank");
+ load_data.url = Url::parse("about:blank").unwrap();
}
resource_thread.send(ControlMsg::Load(NetLoadData {