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 bc0b3adc6c3b32b50dba314b015793b22703d511..49561e4c374898e74426c8e723d6c318bd66f904 100644 |
--- a/third_party/WebKit/Source/core/loader/ProgressTracker.cpp |
+++ b/third_party/WebKit/Source/core/loader/ProgressTracker.cpp |
@@ -104,12 +104,13 @@ LocalFrameClient* ProgressTracker::localFrameClient() const { |
} |
void ProgressTracker::progressStarted(FrameLoadType type) { |
- if (!m_frame->isLoading()) |
- localFrameClient()->didStartLoading(NavigationToDifferentDocument); |
reset(); |
m_progressValue = initialProgressValue; |
- m_frame->setIsLoading(true); |
- InspectorInstrumentation::frameStartedLoading(m_frame, type); |
+ if (!m_frame->isLoading()) { |
+ localFrameClient()->didStartLoading(NavigationToDifferentDocument); |
+ m_frame->setIsLoading(true); |
+ InspectorInstrumentation::frameStartedLoading(m_frame, type); |
+ } |
} |
void ProgressTracker::progressCompleted() { |