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

Side by Side Diff: LayoutTests/http/tests/navigation/resources/ping-cross-origin-from-https-target.html

Issue 324013003: Block mixed PingLoader requests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 6 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 | Annotate | Revision Log
OLDNEW
1 <html><head> 1 <html><head>
2 <title>Ping</title> 2 <title>Ping</title>
3 <script> 3 <script>
4 4
5 var testCalled = false; 5 var testCalled = false;
6 6
7 function test() { 7 function test() {
8 if (!testCalled) { 8 if (!testCalled) {
9 if (window.testRunner) { 9 if (window.testRunner) {
10 testRunner.dumpAsText(); 10 testRunner.dumpAsText();
11 testRunner.overridePreference("WebKitHyperlinkAuditingEnabled", 1); 11 testRunner.overridePreference("WebKitHyperlinkAuditingEnabled", 1);
12 testRunner.waitUntilDone(); 12 testRunner.waitUntilDone();
13 testRunner.dumpPingLoaderCallbacks(); 13 testRunner.dumpPingLoaderCallbacks();
14 testRunner.overridePreference("WebKitAllowRunningInsecureContent", f alse);
15 testRunner.setAllowRunningOfInsecureContent(false);
14 } 16 }
15 testCalled = true; 17 testCalled = true;
16 return; 18 return;
17 } 19 }
18 20
19 if (window.eventSender) { 21 if (window.eventSender) {
20 var a = document.getElementById("a"); 22 var a = document.getElementById("a");
21 eventSender.mouseMoveTo(a.offsetLeft + 2, a.offsetTop + 2); 23 eventSender.mouseMoveTo(a.offsetLeft + 2, a.offsetTop + 2);
22 eventSender.mouseDown(); 24 eventSender.mouseDown();
23 eventSender.mouseUp(); 25 eventSender.mouseUp();
24 } 26 }
25 } 27 }
26 28
27 </script> 29 </script>
28 </head> 30 </head>
29 <body onload="test();"> 31 <body onload="test();">
30 <img src="resources/delete-ping.php?test=cross-origin" onload="test();" onerror= "test();"></img> 32 <img src="resources/delete-ping.php?test=cross-origin-from-https" onload="test() ;" onerror="test();"></img>
31 <a id="a" href="resources/check-ping.php?test=cross-origin" ping="http://localho st:8000/navigation/resources/save-Ping.php?test=cross-origin">Navigate and send ping</a> 33 <a id="a" href="/navigation/resources/notify-done.html" ping="http://localhost:8 000/navigation/resources/save-Ping.php?test=cross-origin-from-https">Navigate an d send ping</a>
32 </body></html> 34 </body></html>
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/navigation/ping-cross-origin-from-https-expected.txt ('k') | Source/core/loader/PingLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698