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

Unified Diff: third_party/WebKit/Source/core/html/HTMLScriptElement.cpp

Issue 2644143005: Adjust the <script nonce>-hiding experiment (Closed)
Patch Set: webexposed 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/html/HTMLScriptElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLScriptElement.cpp b/third_party/WebKit/Source/core/html/HTMLScriptElement.cpp
index dcfb945fcb078e3133b0a0037c4bc6ddf29302c2..0110fca0800a72272486618e7c97e5c235de4120 100644
--- a/third_party/WebKit/Source/core/html/HTMLScriptElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLScriptElement.cpp
@@ -90,7 +90,7 @@ void HTMLScriptElement::parseAttribute(
} else if (params.name == nonceAttr) {
if (params.newValue == ContentSecurityPolicy::getNonceReplacementString())
return;
- m_nonce = params.newValue;
+ setNonce(params.newValue);
if (RuntimeEnabledFeatures::hideNonceContentAttributeEnabled()) {
setAttribute(nonceAttr,
ContentSecurityPolicy::getNonceReplacementString());
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLScriptElement.h ('k') | third_party/WebKit/Source/core/svg/SVGScriptElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698