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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user