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 f8ce12194284324ffa41a7c1d1e18dbf57e7ccb1..3976a5982562c857f8bef8ab7bfbf85fbf0d45c0 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp |
@@ -747,6 +747,7 @@ 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); |