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

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

Issue 2260103003: CSP: Experimentally harden against nonce-stealing injections. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: aaj@ Created 4 years, 4 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/ContentSecurityPolicy.h
diff --git a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
index bc89a13bca92a0070e7a806d2bf94b18f36abcb7..24141d29371db6511ff6eafbe8e10ea13c26bf9b 100644
--- a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
+++ b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
@@ -57,6 +57,7 @@ class ConsoleMessage;
class CSPDirectiveList;
class CSPSource;
class Document;
+class Element;
class FrameLoaderClient;
class KURL;
class ResourceRequest;
@@ -280,6 +281,8 @@ public:
static bool isDirectiveName(const String&);
+ static bool isNonceableElement(const Element*);
+
Document* document() const;
private:

Powered by Google App Engine
This is Rietveld 408576698