From 6889f37d9ed1b147146fa1461ed8d9b1d151745c Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Fri, 26 Feb 2016 17:01:51 +0100 Subject: 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. --- components/script/script_thread.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/script/script_thread.rs') 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 { -- cgit v1.2.3