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

Unified Diff: third_party/WebKit/public/web/WebFrameClient.h

Issue 2702503002: Block renderer-initiated main frame navigations to data URLs (Closed)
Patch Set: Fix Android PDF tests where PDFs should be downloaded 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
« no previous file with comments | « third_party/WebKit/Source/web/LocalFrameClientImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebFrameClient.h
diff --git a/third_party/WebKit/public/web/WebFrameClient.h b/third_party/WebKit/public/web/WebFrameClient.h
index b32fe0821df8bc716529a01e726c54a87fd298f4..1792f5b611efda557771a9e7adea1b0c3f7cb704 100644
--- a/third_party/WebKit/public/web/WebFrameClient.h
+++ b/third_party/WebKit/public/web/WebFrameClient.h
@@ -330,6 +330,14 @@ class BLINK_EXPORT WebFrameClient {
return WebHistoryItem();
}
+ // Asks the embedder whether the frame is allowed to navigate the main frame
+ // to a data URL.
+ // TODO(crbug.com/713259): Move renderer side checks to
+ // RenderFrameImpl::DecidePolicyForNavigation().
+ virtual bool AllowContentInitiatedDataUrlNavigations(const WebURL&) {
+ return false;
+ }
+
// Navigational notifications ------------------------------------------
// These notifications bracket any loading that occurs in the WebFrame.
« no previous file with comments | « third_party/WebKit/Source/web/LocalFrameClientImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698