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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/beacon/beacon-basic.html

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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <script src="../../resources/js-test.js"></script> 2 <script src="../../resources/js-test.js"></script>
3 <script> 3 <script>
4 description("Exercising the Beacon API"); 4 description("Exercising the Beacon API");
5 5
6 shouldBeTrue("Object.getPrototypeOf(navigator).hasOwnProperty('sendBeacon')"); 6 shouldBeTrue("Object.getPrototypeOf(navigator).hasOwnProperty('sendBeacon')");
7 shouldBeEqualToString("typeof navigator.sendBeacon", "function"); 7 shouldBeEqualToString("typeof navigator.sendBeacon", "function");
8 shouldThrow("navigator.sendBeacon()"); 8 shouldThrow("navigator.sendBeacon()");
9 shouldThrow("navigator.sendBeacon('http:')"); 9 shouldThrow("navigator.sendBeacon('http:')");
10 shouldThrow("navigator.sendBeacon('javascript:alert(1);')"); 10 shouldThrow("navigator.sendBeacon('javascript:alert(1);')");
11
12 if (window.SharedArrayBuffer) {
13 shouldThrow("navigator.sendBeacon('https:', new Uint8Array(new SharedArrayBuff er(10)))");
14 }
15
11 </script> 16 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698