Index: Source/core/xml/XMLHttpRequest.cpp |
diff --git a/Source/core/xml/XMLHttpRequest.cpp b/Source/core/xml/XMLHttpRequest.cpp |
index 50bb426ce457d742965400376e0a28e5be529a01..30c501640c68d1f1d7c453ae08f7ca615b3f6e22 100644 |
--- a/Source/core/xml/XMLHttpRequest.cpp |
+++ b/Source/core/xml/XMLHttpRequest.cpp |
@@ -982,9 +982,11 @@ void XMLHttpRequest::handleNetworkError() |
long long expectedLength = m_response.expectedContentLength(); |
long long receivedLength = m_receivedLength; |
+ if (!internalAbort()) |
+ return; |
+ |
handleDidFailGeneric(); |
handleRequestError(NetworkError, EventTypeNames::error, receivedLength, expectedLength); |
- internalAbort(); |
} |
void XMLHttpRequest::handleDidCancel() |