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

Unified Diff: third_party/WebKit/Source/core/dom/DOMArrayPiece.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/dom/DOMArrayPiece.cpp
diff --git a/third_party/WebKit/Source/core/dom/DOMArrayPiece.cpp b/third_party/WebKit/Source/core/dom/DOMArrayPiece.cpp
index c1307e4956535ae46ed60e97a3103b51f4e5a2a8..53687a81f3ad7be93eaabc2e81a365f6ebb51cb4 100644
--- a/third_party/WebKit/Source/core/dom/DOMArrayPiece.cpp
+++ b/third_party/WebKit/Source/core/dom/DOMArrayPiece.cpp
@@ -16,7 +16,7 @@ DOMArrayPiece::DOMArrayPiece(
initWithData(arrayBuffer->data(), arrayBuffer->byteLength());
} else if (arrayBufferOrView.isArrayBufferView()) {
DOMArrayBufferView* arrayBufferView =
- arrayBufferOrView.getAsArrayBufferView();
+ arrayBufferOrView.getAsArrayBufferView().view();
initWithData(arrayBufferView->baseAddress(), arrayBufferView->byteLength());
} else if (arrayBufferOrView.isNull() &&
option == AllowNullPointToNullWithZeroSize) {

Powered by Google App Engine
This is Rietveld 408576698