diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2015-11-21 21:10:52 +0530 |
---|---|---|
committer | bors-servo <lbergstrom+bors@mozilla.com> | 2015-11-21 21:10:52 +0530 |
commit | ea690a2dff64d1cb4eb668473d62f1bbcb19f7c8 (patch) | |
tree | cf5804f921ef3b249cc41610b7a99d11663ebfbe /components/script/dom/document.rs | |
parent | ec3437f4e30547884f9faaf153201fad6ab1173f (diff) | |
parent | f34da4120d475f7fd78a647fc246e5731e7de941 (diff) | |
download | servo-ea690a2dff64d1cb4eb668473d62f1bbcb19f7c8.tar.gz servo-ea690a2dff64d1cb4eb668473d62f1bbcb19f7c8.zip |
Auto merge of #8622 - frewsxcv:url-plugin, r=SimonSapin
Implement 'url!(..)' macro
https://github.com/servo/rust-url/issues/136
https://github.com/servo/rust-url/pull/137
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8622)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r-- | components/script/dom/document.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index 585b93f1912..34a7846b543 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -1388,7 +1388,7 @@ impl Document { source: DocumentSource, doc_loader: DocumentLoader) -> Document { - let url = url.unwrap_or_else(|| Url::parse("about:blank").unwrap()); + let url = url.unwrap_or_else(|| url!("about:blank")); let (ready_state, domcontentloaded_dispatched) = if source == DocumentSource::FromParser { (DocumentReadyState::Loading, false) |