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 b10eff3d83577e17d6bba2bd9746ae1cc8c1f1a8..247c28a978d7d40a52596a11b8f33646bcb2de35 100644 |
--- a/third_party/WebKit/Source/core/dom/StyleElement.cpp |
+++ b/third_party/WebKit/Source/core/dom/StyleElement.cpp |
@@ -174,7 +174,7 @@ StyleElement::ProcessingResult StyleElement::createSheet(Element* e, const Strin |
const ContentSecurityPolicy* csp = document.contentSecurityPolicy(); |
bool passesContentSecurityPolicyChecks = shouldBypassMainWorldCSP(e) |
- || csp->allowStyleWithHash(text) |
+ || csp->allowStyleWithHash(text, ContentSecurityPolicy::InlineType::Block) |
|| csp->allowStyleWithNonce(e->fastGetAttribute(HTMLNames::nonceAttr)) |
|| csp->allowInlineStyle(e->document().url(), m_startPosition.m_line, text); |