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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/security/mixedContent/insecure-prefetch-in-main-frame.html

Issue 1931063004: Stop blocking 'http://127.0.0.1/' as mixed content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ugh. Created 4 years, 6 months 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 <p> 4 <p>
5 Prefetching from insecure source must trigger a mixed content callback. 5 Prefetching from insecure source must trigger a mixed content callback.
6 </p> 6 </p>
7 7
8 <link rel="prefetch" href="http://127.0.0.1:8080/resources/square.png" onload=" prefetch_onload()" /> 8 <link rel="prefetch" href="http://example.test:8080/resources/square.png" onloa d="prefetch_onload()" />
9 9
10 <script> 10 <script>
11 if (location.protocol != 'https:') 11 if (location.protocol != 'https:')
12 location = 'https://127.0.0.1:8443/security/mixedContent/insecure-prefetch-i n-main-frame.html'; 12 location = 'https://127.0.0.1:8443/security/mixedContent/insecure-prefetch-i n-main-frame.html';
13 13
14 if (window.testRunner) { 14 if (window.testRunner) {
15 testRunner.waitUntilDone(); 15 testRunner.waitUntilDone();
16 testRunner.dumpAsText(); 16 testRunner.dumpAsText();
17 } 17 }
18 18
19 function prefetch_onload() { 19 function prefetch_onload() {
20 if (window.testRunner) 20 if (window.testRunner)
21 testRunner.notifyDone(); 21 testRunner.notifyDone();
22 } 22 }
23 </script> 23 </script>
24 </body> 24 </body>
25 </html> 25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698