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

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

Issue 2702503002: Block renderer-initiated main frame navigations to data URLs (Closed)
Patch Set: nasko comments 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
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 0fd5e49fd26d68b8ef62a66d36ae0a2beb9b5840..8f0f68792e51e47314fb78b3ac86d3c7543e55c8 100644
--- a/third_party/WebKit/public/web/WebFrameClient.h
+++ b/third_party/WebKit/public/web/WebFrameClient.h
@@ -672,6 +672,12 @@ class BLINK_EXPORT WebFrameClient {
// content/ APIs.
virtual bool allowWebGL(bool defaultValue) { return defaultValue; }
+ // Asks the embedder whether the frame is allowed to navigate the main frame
+ // to a data URL.
+ virtual bool allowContentInitiatedDataUrlNavigations(const WebURL&) {
+ return false;
+ }
kinuko 2017/04/07 07:52:34 This should not be in 'WebGL' category, please mov
meacer 2017/04/11 01:08:51 Done.
+
// Screen Orientation --------------------------------------------------
// Access the embedder API for (client-based) screen orientation client .

Powered by Google App Engine
This is Rietveld 408576698