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

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

Issue 2628733005: Experiment with hiding <script>'s 'nonce' content attribute. (Closed)
Patch Set: Ugh. Created 3 years, 11 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 fae2b3c927ab582de0369ea975ced8aa53a815e8..e19cd49d835c67b3534b1a5503e04bf1049f0fcf 100644
--- a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
+++ b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h
@@ -346,6 +346,7 @@ class CORE_EXPORT ContentSecurityPolicy
static bool shouldBypassMainWorld(const ExecutionContext*);
static bool isNonceableElement(const Element*);
+ static const char* getNonceReplacementString() { return "[Replaced]"; }
// This method checks whether the request should be allowed for an
// experimental EmbeddingCSP feature

Powered by Google App Engine
This is Rietveld 408576698