diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2019-09-26 10:01:39 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-26 10:01:39 -0400 |
commit | 31869f3204695f38156b91cf71a38c1ec3840cf2 (patch) | |
tree | c940b23e0dfa00d64938fb739feabc43574b96a5 /components/script/dom/xmlhttprequest.rs | |
parent | 049527872e6dfadf3f69f0f9fa6fffee520a6f7b (diff) | |
parent | 7432913b7f01d9bccd93f59d8bffda1f2a67bc97 (diff) | |
download | servo-31869f3204695f38156b91cf71a38c1ec3840cf2.tar.gz servo-31869f3204695f38156b91cf71a38c1ec3840cf2.zip |
Auto merge of #24300 - CYBAI:lt-cleanup, r=jdm
Remove unused checking in GetResponseXML
We've supported [Exposed] so no need to check the global scope type!
---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes do not require tests because it just removes an unused checking. Also, those tests marked as `PASS` in #10573 should still pass.
<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->
<!-- 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/24300)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/xmlhttprequest.rs')
-rw-r--r-- | components/script/dom/xmlhttprequest.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/components/script/dom/xmlhttprequest.rs b/components/script/dom/xmlhttprequest.rs index 7f0dbdf68a2..df2d0ed47c1 100644 --- a/components/script/dom/xmlhttprequest.rs +++ b/components/script/dom/xmlhttprequest.rs @@ -935,12 +935,6 @@ impl XMLHttpRequestMethods for XMLHttpRequest { // https://xhr.spec.whatwg.org/#the-responsexml-attribute fn GetResponseXML(&self) -> Fallible<Option<DomRoot<Document>>> { - // TODO(#2823): Until [Exposed] is implemented, this attribute needs to return null - // explicitly in the worker scope. - if self.global().is::<WorkerGlobalScope>() { - return Ok(None); - } - match self.response_type.get() { XMLHttpRequestResponseType::_empty | XMLHttpRequestResponseType::Document => { // Step 3 |