| Index: third_party/WebKit/LayoutTests/http/tests/preload/meta-csp.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/preload/meta-csp.html b/third_party/WebKit/LayoutTests/http/tests/preload/meta-csp.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..91cf6c88d0c531c6c8a0bf5832437d298415b92c
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/preload/meta-csp.html
|
| @@ -0,0 +1,17 @@
|
| +<!DOCTYPE html>
|
| +<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; font-src 'none'">
|
| +<script src="../resources/testharness.js"></script>
|
| +<script src="../resources/testharnessreport.js"></script>
|
| +<link rel=preload href="../resources/Ahem.ttf" as=font crossorigin>
|
| +<script>
|
| +var t = async_test("Ensure preloads occur when csp meta tags are in the markup");
|
| +window.addEventListener("load", t.step_func(function() {
|
| + if (window.internals) {
|
| + assert_false(internals.isPreloaded('../resources/Ahem.ttf'), "fonts should not be preloaded");
|
| + assert_true(internals.isPreloaded('../resources/testharness.js'));
|
| + assert_true(internals.isPreloaded('../resources/testharnessreport.js'));
|
| + t.done();
|
| + }
|
| +}));
|
| +</script>
|
| +
|
|
|