Index: third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/connect-src-preload-allowed.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/connect-src-preload-allowed.html b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/connect-src-preload-allowed.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e71fd0bb7f8fc48bea26260ae5f481e90bf986c5 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/security/contentSecurityPolicy/connect-src-preload-allowed.html |
@@ -0,0 +1,16 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<meta http-equiv="Content-Security-Policy" content="connect-src http://127.0.0.1:8000; script-src http://127.0.0.1:8000 'unsafe-inline'"> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<link rel=preload href="../../resources/dummy.js" id=preload> |
+<script> |
+ var t = async_test('Makes sure that connect-src allows link preload resources with no as type'); |
+ var preload = document.getElementById("preload"); |
+ preload.onload = t.step(function(){ |
+ t.done(); |
+ }); |
+</script> |
+</head> |
+<body> |