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

Side by Side Diff: third_party/WebKit/LayoutTests/virtual/sharedarraybuffer/fast/xmlhttprequest/xmlhttprequest-send-sharedarraybuffer.html

Issue 1526183004: Prevent SharedArrayBuffer views from being used in bindings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: some tests Created 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <body>
3 <div id="description"></div>
4 <div id="console"></div>
5 <script src="../../../../resources/js-test.js"></script>
6 <script>
7 description('This test checks if sending a SharedArrayBuffer throws an exception ');
8
9 var xhr = new XMLHttpRequest();
10 xhr.open('POST', 'resources/plist.app', true);
11
12 shouldThrow('xhr.send(new Uint8Array(new SharedArrayBuffer(10)))', '"TypeError: Failed to execute \'send\' on \'XMLHttpRequest\': parameter 1 is a view of a Sha redArrayBuffer."');
13 </script>
14 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698