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

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

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: update comment, add TODO 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 c774ea37eafdf6a4b427e66b0efda426bf53d09e..d45a653c3cf2f4e6deb9cedf636d0bc4662a6750 100644
--- a/third_party/WebKit/Source/modules/crypto/SubtleCrypto.cpp
+++ b/third_party/WebKit/Source/modules/crypto/SubtleCrypto.cpp
@@ -457,7 +457,7 @@ ScriptPromise SubtleCrypto::importKey(
if (raw_key_data.isArrayBuffer()) {
key_data = CopyBytes(raw_key_data.getAsArrayBuffer());
} else if (raw_key_data.isArrayBufferView()) {
- key_data = CopyBytes(raw_key_data.getAsArrayBufferView());
+ key_data = CopyBytes(raw_key_data.getAsArrayBufferView().View());
} else {
result->CompleteWithError(
kWebCryptoErrorTypeType,
« no previous file with comments | « third_party/WebKit/Source/modules/crypto/Crypto.cpp ('k') | third_party/WebKit/Source/modules/encoding/TextDecoder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698