Skip to content
Permalink
Browse files

Remove unused checking

We've supported [Exposed] so no need to check the global scope type!
  • Loading branch information...
CYBAI committed Sep 26, 2019
1 parent 0495278 commit 7432913b7f01d9bccd93f59d8bffda1f2a67bc97
Showing with 0 additions and 6 deletions.
  1. +0 −6 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

0 comments on commit 7432913

Please sign in to comment.
You can’t perform that action at this time.