| Index: third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp b/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp
|
| index fe575896efffb5469457394e81b7d2f1ac394a47..7f26963bff9bab4b99ae60c09edf8c4442c0e808 100644
|
| --- a/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp
|
| @@ -122,7 +122,7 @@ 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);
|
| }
|
|
|
| bool CSPDirectiveList::checkHash(SourceListDirective* directive, const CSPHashValue& hashValue) const
|
|
|