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

Unified Diff: third_party/WebKit/Source/core/frame/LocalFrameClient.h

Issue 2702503002: Block renderer-initiated main frame navigations to data URLs (Closed)
Patch Set: Re-block data to data navigations, rebase, address 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/Source/core/frame/LocalFrameClient.h
diff --git a/third_party/WebKit/Source/core/frame/LocalFrameClient.h b/third_party/WebKit/Source/core/frame/LocalFrameClient.h
index 04066845b3f9b5118e46d6b8dce81a3eff7b033e..30965489f6a6cec892d85e125bb9d709fdee697b 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrameClient.h
+++ b/third_party/WebKit/Source/core/frame/LocalFrameClient.h
@@ -234,6 +234,10 @@ class CORE_EXPORT LocalFrameClient : public FrameClient {
virtual void didChangeScrollOffset() {}
virtual void didUpdateCurrentHistoryItem() {}
+ // Called when a content-initiated, main frame navigation to a data URL is
+ // about to occur.
+ virtual bool allowInsecureDataUrlNavigations(const KURL&) { return false; }
+
virtual WebCookieJar* cookieJar() const = 0;
virtual void didChangeName(const String&) {}

Powered by Google App Engine
This is Rietveld 408576698