diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-04-14 19:14:35 +0530 |
---|---|---|
committer | bors-servo <lbergstrom+bors@mozilla.com> | 2016-04-14 19:14:35 +0530 |
commit | 3368565b3c6c76e5ce2d170d5c5cfb2f52a56956 (patch) | |
tree | de5760262a46742ee42b95b022051f401a6e4810 /components/script/dom/htmliframeelement.rs | |
parent | 87d5424d4d5eb10f91ddb6bfaf6ab1eba2cd49b3 (diff) | |
parent | 6889f37d9ed1b147146fa1461ed8d9b1d151745c (diff) | |
download | servo-3368565b3c6c76e5ce2d170d5c5cfb2f52a56956.tar.gz servo-3368565b3c6c76e5ce2d170d5c5cfb2f52a56956.zip |
Auto merge of #10606 - servo:remove-url-plugin, r=nox
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.
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
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10606)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/htmliframeelement.rs')
-rw-r--r-- | components/script/dom/htmliframeelement.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmliframeelement.rs b/components/script/dom/htmliframeelement.rs index 56ad1d3df39..3824d981af1 100644 --- a/components/script/dom/htmliframeelement.rs +++ b/components/script/dom/htmliframeelement.rs @@ -146,7 +146,7 @@ impl HTMLIFrameElement { pub fn process_the_iframe_attributes(&self) { let url = match self.get_url() { Some(url) => url.clone(), - None => url!("about:blank"), + None => Url::parse("about:blank").unwrap(), }; self.navigate_or_reload_child_browsing_context(Some(url)); |