Index: third_party/WebKit/LayoutTests/external/wpt/content-security-policy/img-src/img-src-full-host-wildcard-blocked.sub.html |
diff --git a/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/img-src/img-src-full-host-wildcard-blocked.sub.html b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/img-src/img-src-full-host-wildcard-blocked.sub.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6db04f3b8172a5472cbb83bbb47bb1805f5e855e |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/img-src/img-src-full-host-wildcard-blocked.sub.html |
@@ -0,0 +1,20 @@ |
+<!DOCTYPE html> |
+<meta http-equiv="Content-Security-Policy" content="img-src *.127.0.0.1:{{ports[http][0]}}"> |
+<html> |
+<head> |
+ <title>img-src with full host and wildcard blocks correctly.</title> |
+ <script src='/resources/testharness.js'></script> |
+ <script src='/resources/testharnessreport.js'></script> |
+</head> |
+<body> |
+ <div id='log'/> |
+ |
+ <script> |
+ var t1 = async_test("img src does not match full host and wildcard csp directive"); |
+ </script> |
+ <img src='http://127.0.0.1:{{ports[http][0]}}/content-security-policy/support/fail.png' |
Mike West
2017/03/22 11:56:22
Nit: Please change both `127.0.0.1` instances to `
andypaicu
2017/03/23 09:22:10
done
|
+ onload='t1.step(function() { assert_unreached("Image should have loaded"); t1.done(); });' |
+ onerror='t1.done();'> |
Mike West
2017/03/22 11:56:22
Nit: I vaguely prefer the scripty version above, b
|
+ |
+</body> |
+</html> |