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

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

Issue 1837483002: Allow LoadNavigationErrorPage to run scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 72bdb4b23e4f27fb061d2580d5689fb7d005083b..a89a59d92a2e32bcfe1b2afd16815c17fc72b4bf 100644
--- a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
+++ b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
@@ -195,10 +195,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|!
}
@@ -438,7 +438,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())
@@ -450,7 +450,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