Index: Source/core/xml/XMLHttpRequest.cpp |
diff --git a/Source/core/xml/XMLHttpRequest.cpp b/Source/core/xml/XMLHttpRequest.cpp |
index 651d2015c5fcaa8ea534efc8d886baead9563489..cd81fac16498eb5ddf4f0f6b6461e0d167e6887b 100644 |
--- a/Source/core/xml/XMLHttpRequest.cpp |
+++ b/Source/core/xml/XMLHttpRequest.cpp |
@@ -240,7 +240,7 @@ Document* XMLHttpRequest::responseXML(ExceptionCode& ec) |
// If it is text/html, then the responseType of "document" must have been supplied explicitly. |
if ((m_response.isHTTP() && !responseIsXML() && !isHTML) |
|| (isHTML && m_responseTypeCode == ResponseTypeDefault) |
- || scriptExecutionContext()->isWorkerContext()) { |
+ || scriptExecutionContext()->isWorkerGlobalScope()) { |
m_responseDocument = 0; |
} else { |
if (isHTML) |