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

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

Issue 2147853003: Teach 'LinkRequestBuilder' about the 'nonce' attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@preload
Patch Set: Created 4 years, 5 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/HTMLLinkElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp b/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
index bf542455627384c567cc92ad43c54f09e8481c31..1fc1315ea9a0dc7028da8c59725a5b01493ca912 100644
--- a/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
@@ -683,7 +683,6 @@ void LinkStyle::process()
// When the link element is created by scripts, load the stylesheets asynchronously but in high priority.
bool lowPriority = !mediaQueryMatches || m_owner->isAlternate();
FetchRequest request = builder.build(lowPriority);
- request.setContentSecurityPolicyNonce(m_owner->fastGetAttribute(HTMLNames::nonceAttr));
CrossOriginAttributeValue crossOrigin = crossOriginAttributeValue(m_owner->fastGetAttribute(HTMLNames::crossoriginAttr));
if (crossOrigin != CrossOriginAttributeNotSet) {
request.setCrossOriginAccessControl(document().getSecurityOrigin(), crossOrigin);

Powered by Google App Engine
This is Rietveld 408576698