| Index: third_party/WebKit/LayoutTests/http/tests/preload/preload-csp.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/preload/preload-csp.html b/third_party/WebKit/LayoutTests/http/tests/preload/preload-csp.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7a06d81fc4f8b71b88fefc70f61695dde0748c82
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/preload/preload-csp.html
|
| @@ -0,0 +1,17 @@
|
| +<!DOCTYPE html>
|
| +<meta http-equiv="Content-Security-Policy" content="font-src 'none'">
|
| +<script src="../resources/testharness.js"></script>
|
| +<script src="../resources/testharnessreport.js"></script>
|
| +<script>
|
| + var t = async_test('Makes sure that preload requests respect CSP');
|
| +</script>
|
| +<link rel=preload href="../resources/Ahem.ttf" as=font crossorigin>
|
| +<script src="../resources/slow-script.pl?delay=200"></script>
|
| +<script>
|
| + window.onload = t.step(function(){
|
| + var entries = performance.getEntriesByName(new URL("../resources/Ahem.ttf", location.href).href);
|
| + assert_equals(entries.length, 0);
|
| + t.done();
|
| + });
|
| +</script>
|
| +
|
|
|