servo: Merge #10606 - Remove the url! plugin (from servo:remove-url-plugin); r=nox

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.

This commit was originally part of #9840, but it’s taking a while to land and I keep removing new uses of `url!` when rebasing.

r? @nox

Source-Repo: https://github.com/servo/servo
Source-Revision: 3368565b3c6c76e5ce2d170d5c5cfb2f52a56956
This commit is contained in:
Simon Sapin
2016-04-14 18:44:35 +05:00
parent 907bb20c30
commit a666359e23
27 changed files with 84 additions and 296 deletions

View File

@@ -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 {