diff options
author | CYBAI <cyb.ai.815@gmail.com> | 2019-09-26 22:53:10 +0900 |
---|---|---|
committer | CYBAI <cyb.ai.815@gmail.com> | 2019-09-26 22:53:10 +0900 |
commit | 7432913b7f01d9bccd93f59d8bffda1f2a67bc97 (patch) | |
tree | c940b23e0dfa00d64938fb739feabc43574b96a5 | |
parent | 049527872e6dfadf3f69f0f9fa6fffee520a6f7b (diff) | |
download | servo-7432913b7f01d9bccd93f59d8bffda1f2a67bc97.tar.gz servo-7432913b7f01d9bccd93f59d8bffda1f2a67bc97.zip |
Remove unused checking
We've supported [Exposed] so no need to check the global scope type!
-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 |