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

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

Issue 2425663002: Add an error page for resources blocked via XSS Auditor. (Closed)
Patch Set: Words. Created 4 years, 1 month 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 2081e50930d46df5178f439c030e0c500b6519f8..f5d1f9c04ec32882264a3c0198bf3450a19cb1cb 100644
--- a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
+++ b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
@@ -604,6 +604,11 @@ void FrameLoaderClientImpl::loadURLExternally(const ResourceRequest& request,
suggestedName, shouldReplaceCurrentEntry);
}
+void FrameLoaderClientImpl::loadErrorPage(int reason) {
+ if (m_webFrame->client())
+ m_webFrame->client()->loadErrorPage(reason);
+}
+
bool FrameLoaderClientImpl::navigateBackForward(int offset) const {
WebViewImpl* webview = m_webFrame->viewImpl();
if (!webview->client())

Powered by Google App Engine
This is Rietveld 408576698