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

Unified Diff: third_party/WebKit/Source/core/loader/DocumentLoader.cpp

Issue 1364863002: DocumentLoader::isCommittedButEmpty is timing-dependent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Back to the original test fix Created 4 years, 5 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/core/loader/DocumentLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
index ba24f4d6e21fde07e25248049e60d76cc9ebd5b4..40b9779afcd1b0bda1c9930b750b5029b37aba6b 100644
--- a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
@@ -105,6 +105,7 @@ DocumentLoader::DocumentLoader(LocalFrame* frame, const ResourceRequest& req, co
, m_request(req)
, m_isClientRedirect(false)
, m_replacesCurrentHistoryItem(false)
+ , m_dataReceived(false)
, m_navigationType(NavigationTypeOther)
, m_documentLoadTiming(*this)
, m_timeOfLastDataReceived(0.0)
@@ -482,7 +483,7 @@ void DocumentLoader::commitData(const char* bytes, size_t length)
return;
if (length)
- m_state = DataReceived;
+ m_dataReceived = true;
m_writer->addData(bytes, length);
}

Powered by Google App Engine
This is Rietveld 408576698