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

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

Issue 2412803004: Don't update progress when Frame::isLoading() is false (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/loader/ProgressTracker.cpp
diff --git a/third_party/WebKit/Source/core/loader/ProgressTracker.cpp b/third_party/WebKit/Source/core/loader/ProgressTracker.cpp
index 098155271e5c498fd4aab8a2ea584b37414b91bc..69833e777b26c7a801b154337a6c9eda3a3a64ee 100644
--- a/third_party/WebKit/Source/core/loader/ProgressTracker.cpp
+++ b/third_party/WebKit/Source/core/loader/ProgressTracker.cpp
@@ -172,6 +172,9 @@ void ProgressTracker::incrementProgress(unsigned long identifier, int length) {
}
void ProgressTracker::maybeSendProgress() {
+ if (!m_frame->isLoading())
+ return;
+
m_progressValue = initialProgressValue + 0.1; // +0.1 for committing
if (m_finishedParsing)
m_progressValue += 0.2;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698