Index: third_party/WebKit/Source/modules/crypto/SubtleCrypto.cpp |
diff --git a/third_party/WebKit/Source/modules/crypto/SubtleCrypto.cpp b/third_party/WebKit/Source/modules/crypto/SubtleCrypto.cpp |
index 8ce6d3391c881a94100581573f35cdf09cbf2f98..65d84fc275968ae37b8a14e8299ae326d247c34f 100644 |
--- a/third_party/WebKit/Source/modules/crypto/SubtleCrypto.cpp |
+++ b/third_party/WebKit/Source/modules/crypto/SubtleCrypto.cpp |
@@ -56,7 +56,7 @@ static bool parseAlgorithm(const AlgorithmIdentifier& raw, WebCryptoOperation op |
static bool canAccessWebCrypto(ScriptState* scriptState, CryptoResult* result) |
{ |
String errorMessage; |
- if (!scriptState->executionContext()->isPrivilegedContext(errorMessage, ExecutionContext::WebCryptoPrivilegeCheck)) { |
+ if (!scriptState->executionContext()->isSecureContext(errorMessage, ExecutionContext::WebCryptoSecureContextCheck)) { |
result->completeWithError(WebCryptoErrorTypeNotSupported, errorMessage); |
return false; |
} |