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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/beacon/beacon-basic.html
diff --git a/third_party/WebKit/LayoutTests/fast/beacon/beacon-basic.html b/third_party/WebKit/LayoutTests/fast/beacon/beacon-basic.html
index 6450c6ef50720993a86efef73a0c52f46794cd21..faa5fa2ad65891f27078894b729684a623652d0f 100644
--- a/third_party/WebKit/LayoutTests/fast/beacon/beacon-basic.html
+++ b/third_party/WebKit/LayoutTests/fast/beacon/beacon-basic.html
@@ -8,4 +8,9 @@ shouldBeEqualToString("typeof navigator.sendBeacon", "function");
shouldThrow("navigator.sendBeacon()");
shouldThrow("navigator.sendBeacon('http:')");
shouldThrow("navigator.sendBeacon('javascript:alert(1);')");
+
+if (window.SharedArrayBuffer) {
+ shouldThrow("navigator.sendBeacon('https:', new Uint8Array(new SharedArrayBuffer(10)))");
+}
+
</script>

Powered by Google App Engine
This is Rietveld 408576698