Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/upgrade-insecure-requests/image-upgrade.https.html

Issue 2053693002: WIP: Move 'Upgrade-Insecure-Requests' to the browser process. Base URL: https://chromium.googlesource.com/chromium/src.git@replicate
Patch Set: Just redirects. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>Upgrade Insecure Requests: Images.</title>
3 <script src="/resources/testharness.js"></script>
4 <script src="/resources/testharnessreport.js"></script>
5 <script src="./resources/testharness-helper.js"></script>
6
7 <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
8
9 <body>
10 <script>
11 var tests = [
12 generateURL(Host.SAME_ORIGIN, Protocol.INSECURE, ResourceType.IMAGE),
13 generateURL(Host.SAME_ORIGIN, Protocol.SECURE, ResourceType.IMAGE),
14 generateURL(Host.CROSS_ORIGIN, Protocol.INSECURE, ResourceType.IMAGE),
15 generateURL(Host.CROSS_ORIGIN, Protocol.SECURE, ResourceType.IMAGE),
16 ];
17
18 tests.forEach(test => {
19 async_test(t => assert_image_loads(t, test.url, 103, 76), test.name);
20 async_test(t => assert_image_loads_in_srcdoc(t, test.url, 103, 76), test.name + " in <iframe srcdoc>");
21 async_test(t => assert_image_loads_in_blank(t, test.url, 103, 76), test.name + " in <iframe>");
22 });
23 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698