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

Unified Diff: third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp

Issue 1838733002: Allow LoadNavigationErrorPage to run scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
Patch Set: Created 4 years, 9 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/web/FrameLoaderClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
index 2ef7c32d4c4b20e07a6226cc71907fbb416ff654..b57ebf5037fa9b09986223ec7914a71ca1fe3343 100644
--- a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
+++ b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
@@ -194,10 +194,10 @@ void FrameLoaderClientImpl::runScriptsAtDocumentElementAvailable()
// The callback might have deleted the frame, do not use |this|!
}
-void FrameLoaderClientImpl::runScriptsAtDocumentReady()
+void FrameLoaderClientImpl::runScriptsAtDocumentReady(bool documentIsEmpty)
{
if (m_webFrame->client())
- m_webFrame->client()->runScriptsAtDocumentReady(m_webFrame);
+ m_webFrame->client()->runScriptsAtDocumentReady(m_webFrame, documentIsEmpty);
// The callback might have deleted the frame, do not use |this|!
}
@@ -437,7 +437,7 @@ void FrameLoaderClientImpl::dispatchDidFinishLoading(DocumentLoader* loader,
m_webFrame->client()->didFinishResourceLoad(m_webFrame, identifier);
}
-void FrameLoaderClientImpl::dispatchDidFinishDocumentLoad(bool documentIsEmpty)
+void FrameLoaderClientImpl::dispatchDidFinishDocumentLoad()
{
if (!m_webFrame->parent()) {
if (WebViewImpl* webview = m_webFrame->viewImpl())
@@ -449,7 +449,7 @@ void FrameLoaderClientImpl::dispatchDidFinishDocumentLoad(bool documentIsEmpty)
// the fake WebLocalFrame that they create, which means that you should not
// put any code touching `this` after the two lines below.
if (m_webFrame->client())
- m_webFrame->client()->didFinishDocumentLoad(m_webFrame, documentIsEmpty);
+ m_webFrame->client()->didFinishDocumentLoad(m_webFrame);
}
void FrameLoaderClientImpl::dispatchDidLoadResourceFromMemoryCache(const ResourceRequest& request, const ResourceResponse& response)
« no previous file with comments | « third_party/WebKit/Source/web/FrameLoaderClientImpl.h ('k') | third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698