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

Unified Diff: third_party/WebKit/Source/core/html/LinkResource.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/html/LinkResource.cpp
diff --git a/third_party/WebKit/Source/core/html/LinkResource.cpp b/third_party/WebKit/Source/core/html/LinkResource.cpp
index 34105f2476e5932b9b88afeb2189678b150ae944..ba9af69e9f3dcb27d21a471d6182aa959e3a56e8 100644
--- a/third_party/WebKit/Source/core/html/LinkResource.cpp
+++ b/third_party/WebKit/Source/core/html/LinkResource.cpp
@@ -78,8 +78,7 @@ FetchParameters LinkRequestBuilder::Build(bool low_priority) const {
FetchParameters params(resource_request, owner_->localName(), charset_);
if (low_priority)
params.SetDefer(FetchParameters::kLazyLoad);
- params.SetContentSecurityPolicyNonce(
- owner_->FastGetAttribute(HTMLNames::nonceAttr));
+ params.SetContentSecurityPolicyNonce(owner_->nonce());
return params;
}
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLScriptElement.idl ('k') | third_party/WebKit/Source/core/svg/SVGElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698