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

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

Issue 2809733003: Move most of FrameLoader::CheckCompleted() to Document (Closed)
Patch Set: processingLoadEvent() as part of shouldComplete(), cleanup shouldComplete() Created 3 years, 8 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/NavigationScheduler.cpp
diff --git a/third_party/WebKit/Source/core/loader/NavigationScheduler.cpp b/third_party/WebKit/Source/core/loader/NavigationScheduler.cpp
index 868fc918c60d197c18961f16d08371782c9b94e6..0bb3274d1184cb4e1c96cd50be2efd67da5bfb05 100644
--- a/third_party/WebKit/Source/core/loader/NavigationScheduler.cpp
+++ b/third_party/WebKit/Source/core/loader/NavigationScheduler.cpp
@@ -507,6 +507,8 @@ void NavigationScheduler::Schedule(ScheduledNavigation* redirect) {
Cancel();
redirect_ = redirect;
+ if (redirect_->IsLocationChange())
+ frame_->GetDocument()->SuppressLoadEvent();
Nate Chapin 2017/04/11 23:25:50 Instead of the early-exit in Document::ImplicitClo
StartTimer();
}

Powered by Google App Engine
This is Rietveld 408576698