| Index: third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp
|
| index 85167e069743e3d1d0fe1ca0b050c28fad75867a..40fc72737fa8099116238163fbf380fe304b6294 100644
|
| --- a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp
|
| @@ -430,12 +430,12 @@ bool checkDigest(const String& source, uint8_t hashAlgorithmsUsed, const CSPDire
|
| if (hashAlgorithmsUsed == ContentSecurityPolicyHashAlgorithmNone)
|
| return false;
|
|
|
| - StringUTF8Adaptor normalizedSource = normalizeSource(source);
|
| + StringUTF8Adaptor utf8Source(source);
|
|
|
| for (const auto& algorithmMap : kAlgorithmMap) {
|
| DigestValue digest;
|
| if (algorithmMap.cspHashAlgorithm & hashAlgorithmsUsed) {
|
| - bool digestSuccess = computeDigest(algorithmMap.algorithm, normalizedSource.data(), normalizedSource.length(), digest);
|
| + bool digestSuccess = computeDigest(algorithmMap.algorithm, utf8Source.data(), utf8Source.length(), digest);
|
| if (digestSuccess && isAllowedByAllWithHash<allowed>(policies, CSPHashValue(algorithmMap.cspHashAlgorithm, digest)))
|
| return true;
|
| }
|
|
|