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

Unified Diff: third_party/WebKit/Source/core/dom/StyleElement.cpp

Issue 2801243002: More tweaks to <script nonce> hiding. (Closed)
Patch Set: Moved tests. Created 3 years, 7 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/dom/StyleElement.cpp
diff --git a/third_party/WebKit/Source/core/dom/StyleElement.cpp b/third_party/WebKit/Source/core/dom/StyleElement.cpp
index 78a431c0445a327553379a36dff3474271b9d3cd..dce5fbc14471401327678ce9f296d2ac2fce8623 100644
--- a/third_party/WebKit/Source/core/dom/StyleElement.cpp
+++ b/third_party/WebKit/Source/core/dom/StyleElement.cpp
@@ -141,8 +141,7 @@ StyleElement::ProcessingResult StyleElement::CreateSheet(Element& element,
ShouldBypassMainWorldCSP(element) ||
csp->AllowStyleWithHash(text,
ContentSecurityPolicy::InlineType::kBlock) ||
- csp->AllowInlineStyle(&element, document.Url(),
- element.FastGetAttribute(HTMLNames::nonceAttr),
+ csp->AllowInlineStyle(&element, document.Url(), element.nonce(),
start_position_.line_, text);
// Clearing the current sheet may remove the cache entry so create the new
« no previous file with comments | « third_party/WebKit/Source/core/dom/ScriptLoader.cpp ('k') | third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698