Index: third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/image-upgrade.https.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/image-upgrade.https.html b/third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/image-upgrade.https.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fac46df53d16473bf59679de02368811c7751b03 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/image-upgrade.https.html |
@@ -0,0 +1,23 @@ |
+<!DOCTYPE html> |
+<title>Upgrade Insecure Requests: Images.</title> |
+<script src="/resources/testharness.js"></script> |
+<script src="/resources/testharnessreport.js"></script> |
+<script src="./resources/testharness-helper.js"></script> |
+ |
+<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> |
+ |
+<body> |
+<script> |
+var tests = [ |
+ generateURL(Host.SAME_ORIGIN, Protocol.INSECURE, ResourceType.IMAGE), |
+ generateURL(Host.SAME_ORIGIN, Protocol.SECURE, ResourceType.IMAGE), |
+ generateURL(Host.CROSS_ORIGIN, Protocol.INSECURE, ResourceType.IMAGE), |
+ generateURL(Host.CROSS_ORIGIN, Protocol.SECURE, ResourceType.IMAGE), |
+]; |
+ |
+tests.forEach(test => { |
+ async_test(t => assert_image_loads(t, test.url, 103, 76), test.name); |
+ async_test(t => assert_image_loads_in_srcdoc(t, test.url, 103, 76), test.name + " in <iframe srcdoc>"); |
+ async_test(t => assert_image_loads_in_blank(t, test.url, 103, 76), test.name + " in <iframe>"); |
+}); |
+</script> |