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

Unified Diff: third_party/WebKit/Source/core/fileapi/Blob.cpp

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: add some layout tests 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/core/fileapi/Blob.cpp
diff --git a/third_party/WebKit/Source/core/fileapi/Blob.cpp b/third_party/WebKit/Source/core/fileapi/Blob.cpp
index f3771ad2179839d1f40ad23a38ea883e75410b76..3942160d04de5acb5d37c7ce3b6ab000864c2a83 100644
--- a/third_party/WebKit/Source/core/fileapi/Blob.cpp
+++ b/third_party/WebKit/Source/core/fileapi/Blob.cpp
@@ -131,7 +131,7 @@ void Blob::populateBlobData(
DOMArrayBuffer* arrayBuffer = item.getAsArrayBuffer();
blobData->appendBytes(arrayBuffer->data(), arrayBuffer->byteLength());
} else if (item.isArrayBufferView()) {
- DOMArrayBufferView* arrayBufferView = item.getAsArrayBufferView();
+ DOMArrayBufferView* arrayBufferView = item.getAsArrayBufferView().view();
blobData->appendBytes(arrayBufferView->baseAddress(),
arrayBufferView->byteLength());
} else if (item.isBlob()) {

Powered by Google App Engine
This is Rietveld 408576698