From 7432913b7f01d9bccd93f59d8bffda1f2a67bc97 Mon Sep 17 00:00:00 2001 From: CYBAI Date: Thu, 26 Sep 2019 22:53:10 +0900 Subject: [PATCH] Remove unused checking We've supported [Exposed] so no need to check the global scope type! --- components/script/dom/xmlhttprequest.rs | 6 ------ 1 file changed, 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>> { - // TODO(#2823): Until [Exposed] is implemented, this attribute needs to return null - // explicitly in the worker scope. - if self.global().is::() { - return Ok(None); - } - match self.response_type.get() { XMLHttpRequestResponseType::_empty | XMLHttpRequestResponseType::Document => { // Step 3