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

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: Emulate onPageFinished 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 9e23b1a9187c4913ae9207a2e6136cd19addece2..5baca4c35b3c34b8fa870ab631e1c3cf4c4148bf 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)
@@ -487,7 +488,7 @@ void DocumentLoader::commitData(const char* bytes, size_t length)
return;
if (length)
- m_state = DataReceived;
+ m_dataReceived = true;
m_writer->addData(bytes, length);
}
« no previous file with comments | « third_party/WebKit/Source/core/loader/DocumentLoader.h ('k') | third_party/WebKit/Source/web/tests/DocumentLoaderTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698