| Index: third_party/WebKit/LayoutTests/http/tests/navigation/beacon-blob-with-non-simple-type.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/navigation/beacon-blob-with-non-simple-type.html b/third_party/WebKit/LayoutTests/http/tests/navigation/beacon-blob-with-non-simple-type.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..04fad8f62cde1cc886f60157cc632e2b7a79c274
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/navigation/beacon-blob-with-non-simple-type.html
|
| @@ -0,0 +1,14 @@
|
| +<!DOCTYPE HTML>
|
| +<script src="/js-test-resources/testharness.js"></script>
|
| +<script src="/js-test-resources/testharnessreport.js"></script>
|
| +<script>
|
| +test(() => {
|
| + assert_throws(
|
| + 'SecurityError',
|
| + () => {
|
| + navigator.sendBeacon("/",
|
| + new Blob(["X"], {type: "image/png"}));
|
| + });
|
| +}, "navigator.sendBeacon() to a cross-origin target with a Blob body with " +
|
| + "non-simple type should throw.");
|
| +</script>
|
|
|