diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-11-20 02:27:54 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-20 02:27:54 -0600 |
commit | 72e4c6dc21c132d49cf0a5f68a3ba45d16cc8322 (patch) | |
tree | a8165e2bc6647f3658824c4791bb3a4ef5a1041b /components/script/dom/node.rs | |
parent | 78e3e2c715b335dc83e6df8dd025a10f8f2ab7ca (diff) | |
parent | 5287e708291770617fe75d4f8fd59593b84b80b1 (diff) | |
download | servo-72e4c6dc21c132d49cf0a5f68a3ba45d16cc8322.tar.gz servo-72e4c6dc21c132d49cf0a5f68a3ba45d16cc8322.zip |
Auto merge of #13418 - stshine:location-replace, r=KiChjang
Make document url mutable and implement location.replace()
<!-- Please describe your changes on the following line: -->
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #13413 (github issue number if applicable).
<!-- Either: -->
- [X] There are tests for these changes OR
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13418)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r-- | components/script/dom/node.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index 8d009bc2f98..883a87a3f16 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -1751,7 +1751,7 @@ impl Node { let window = document.window(); let loader = DocumentLoader::new(&*document.loader()); let document = Document::new(window, None, - Some((*document.url()).clone()), + Some(document.url()), is_html_doc, None, None, DocumentSource::NotFromParser, loader, None, None); |