Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(286)

Unified Diff: third_party/WebKit/Source/modules/crypto/SubtleCrypto.cpp

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: remove unused checks Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 0214b7adfe4f94329619a4ad10d06e24dfcd7a1d..72a24b1ce8ed2c4ee86f38ce82ef5fd4d8ffb138 100644
--- a/third_party/WebKit/Source/modules/crypto/SubtleCrypto.cpp
+++ b/third_party/WebKit/Source/modules/crypto/SubtleCrypto.cpp
@@ -455,7 +455,7 @@ ScriptPromise SubtleCrypto::importKey(
if (rawKeyData.isArrayBuffer()) {
keyData = copyBytes(rawKeyData.getAsArrayBuffer());
} else if (rawKeyData.isArrayBufferView()) {
- keyData = copyBytes(rawKeyData.getAsArrayBufferView());
+ keyData = copyBytes(rawKeyData.getAsArrayBufferView().view());
} else {
result->completeWithError(
WebCryptoErrorTypeType,

Powered by Google App Engine
This is Rietveld 408576698