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

Unified Diff: Source/core/loader/FrameLoader.cpp

Issue 23620020: Don't wait to notify client of spoof attempt if a modal dialog is created. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use PageGroupLoadDeferrer instead Created 7 years, 3 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 | « Source/core/loader/FrameLoader.h ('k') | Source/core/page/PageGroupLoadDeferrer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/FrameLoader.cpp
diff --git a/Source/core/loader/FrameLoader.cpp b/Source/core/loader/FrameLoader.cpp
index a291a62c83023f79e55965421ee5dd2896fc0b28..95d01a027f1d3499f5d7a99d786524814666a1e6 100644
--- a/Source/core/loader/FrameLoader.cpp
+++ b/Source/core/loader/FrameLoader.cpp
@@ -939,6 +939,15 @@ void FrameLoader::didAccessInitialDocumentTimerFired(Timer<FrameLoader>*)
m_client->didAccessInitialDocument();
}
+void FrameLoader::notifyIfInitialDocumentAccessed()
+{
+ if (m_didAccessInitialDocumentTimer.isActive()
+ && m_stateMachine.isDisplayingInitialEmptyDocument()) {
+ m_didAccessInitialDocumentTimer.stop();
+ didAccessInitialDocumentTimerFired(0);
+ }
+}
+
bool FrameLoader::isLoading() const
{
DocumentLoader* docLoader = activeDocumentLoader();
« no previous file with comments | « Source/core/loader/FrameLoader.h ('k') | Source/core/page/PageGroupLoadDeferrer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698