Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Unified Diff: third_party/WebKit/Source/modules/fetch/FetchManager.cpp

Issue 2610653002: Tidy up XMLHttpRequest::endLoading(). (Closed)
Patch Set: Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/fetch/FetchManager.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/FetchManager.cpp b/third_party/WebKit/Source/modules/fetch/FetchManager.cpp
index 39e8daaac8f00a839a7de5edd9c2f199df3a7b22..335a0adc4e89cd1e868d84e1249cdebcd2e23ee9 100644
--- a/third_party/WebKit/Source/modules/fetch/FetchManager.cpp
+++ b/third_party/WebKit/Source/modules/fetch/FetchManager.cpp
@@ -556,7 +556,7 @@ void FetchManager::Loader::loadSucceeded() {
m_finished = true;
if (document() && document()->frame() && document()->frame()->page() &&
- m_responseHttpStatusCode >= 200 && m_responseHttpStatusCode < 300) {
+ FetchUtils::isSuccessfulStatusCode(m_responseHttpStatusCode)) {
document()->frame()->page()->chromeClient().ajaxSucceeded(
document()->frame());
}

Powered by Google App Engine
This is Rietveld 408576698