Index: Source/core/frame/csp/CSPDirectiveList.cpp |
diff --git a/Source/core/frame/csp/CSPDirectiveList.cpp b/Source/core/frame/csp/CSPDirectiveList.cpp |
index 792472dede5bc17eeba85e09c26d7cd8ba36f8c0..a858d1e7755fb70ac09e81f3baa1b13af2b27b25 100644 |
--- a/Source/core/frame/csp/CSPDirectiveList.cpp |
+++ b/Source/core/frame/csp/CSPDirectiveList.cpp |
@@ -78,12 +78,12 @@ bool CSPDirectiveList::checkInline(SourceListDirective* directive) const |
bool CSPDirectiveList::checkNonce(SourceListDirective* directive, const String& nonce) const |
{ |
- return !directive || directive->allowNonce(nonce); |
+ return !directive || directive->allowNonce(nonce) || checkInline(directive); |
} |
bool CSPDirectiveList::checkHash(SourceListDirective* directive, const CSPHashValue& hashValue) const |
{ |
- return !directive || directive->allowHash(hashValue); |
+ return !directive || directive->allowHash(hashValue) || checkInline(directive); |
} |
bool CSPDirectiveList::checkSource(SourceListDirective* directive, const KURL& url) const |