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

Unified Diff: LayoutTests/fast/dom/Window/script-tests/postmessage-clone.js

Issue 138273013: Check for duplicate ArrayBuffer transferables. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update test to current Created 6 years, 11 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: LayoutTests/fast/dom/Window/script-tests/postmessage-clone.js
diff --git a/LayoutTests/fast/dom/Window/script-tests/postmessage-clone.js b/LayoutTests/fast/dom/Window/script-tests/postmessage-clone.js
index 6642ea41f4c37f512568694fdae1a2c2ae3118f0..2ee8ca14ce6b9a096e2f6059b928b557cf5ef500 100644
--- a/LayoutTests/fast/dom/Window/script-tests/postmessage-clone.js
+++ b/LayoutTests/fast/dom/Window/script-tests/postmessage-clone.js
@@ -24,6 +24,8 @@ tryPostMessage('var x = 0; try { eval("badref"); } catch(e) { x = e; } x', true,
var arrayBuffer = new ArrayBuffer(1);
tryPostMessage('"data"', false, null, 0, [arrayBuffer]);
tryPostMessage('arrayBuffer', true, null, DOMException.DATA_CLONE_ERR);
+var duplicateArrayBuffer = new ArrayBuffer(1);
+tryPostMessage('"data"', true, null, DOMException.DATA_CLONE_ERR, [duplicateArrayBuffer, duplicateArrayBuffer]);
var uint8Array = new Uint8Array([10]);
tryPostMessage('"data"', false, null, 0, [uint8Array.buffer]);
tryPostMessage('uint8Array', true, null, DOMException.DATA_CLONE_ERR);

Powered by Google App Engine
This is Rietveld 408576698