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

Unified Diff: third_party/WebKit/Source/core/frame/csp/CSPSourceList.h

Issue 1361763005: Disallow CSP source * matching of data:, blob:, and filesystem: URLs (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Better extensions fix Created 5 years, 3 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/csp/CSPSourceList.h
diff --git a/third_party/WebKit/Source/core/frame/csp/CSPSourceList.h b/third_party/WebKit/Source/core/frame/csp/CSPSourceList.h
index 79401b1ea07f6fc1e27bfba27252fbf5e87bcc19..fceb8158a1b7c8c9471676d479833eb499d3f012 100644
--- a/third_party/WebKit/Source/core/frame/csp/CSPSourceList.h
+++ b/third_party/WebKit/Source/core/frame/csp/CSPSourceList.h
@@ -50,6 +50,8 @@ private:
void addSourceNonce(const String& nonce);
void addSourceHash(const ContentSecurityPolicyHashAlgorithm&, const DigestValue& hash);
+ bool hasSourceMatchInList(const KURL&, ContentSecurityPolicy::RedirectStatus) const;
+
ContentSecurityPolicy* m_policy;
Vector<CSPSource> m_list;
String m_directiveName;

Powered by Google App Engine
This is Rietveld 408576698