| Index: third_party/WebKit/LayoutTests/http/tests/security/ftp-subresource-blocked.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/ftp-subresource-blocked.html b/third_party/WebKit/LayoutTests/http/tests/security/ftp-subresource-blocked.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f03deb1e387e7e42ec2d93c977b650dddd30b914
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/ftp-subresource-blocked.html
|
| @@ -0,0 +1,15 @@
|
| +<!DOCTYPE html>
|
| +<script src="/resources/testharness.js"></script>
|
| +<script src="/resources/testharnessreport.js"></script>
|
| +<script>
|
| + async_test(t => {
|
| + var i = document.createElement('img');
|
| + i.onload = t.unreached_func('The image should not load.');
|
| + i.onerror = t.step_func_done(e => {
|
| + assert_equals(i.naturalWidth, 0);
|
| + assert_equals(i.naturalHeight, 0);
|
| + });
|
| +
|
| + i.src = 'ftp://example.test/image.png';
|
| + }, "'ftp:' subresource requests fail.");
|
| +</script>
|
|
|