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

Side by Side Diff: LayoutTests/http/tests/local/file-url-sent-as-referer.html

Issue 806183005: Remove FrameLoader's checkLoadComplete and checkLoadCompleteForThisFrame (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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> 1 <html>
2 <head> 2 <head>
3 <script> 3 <script>
4 if (window.testRunner)
5 testRunner.waitUntilDone();
6
4 function getImage() 7 function getImage()
5 { 8 {
6 var frameObj = document.getElementById("myFrame"); 9 var frameObj = document.getElementById("myFrame");
7 frameObj.contentWindow.document.write("<img src=\"http://127.0.0.1:8 000/security/resources/showRefererImage.php\"/>"); 10 frameObj.contentWindow.document.write("<img src=\"http://127.0.0.1:8 000/security/resources/showRefererImage.php\"/>");
8 frameObj.contentWindow.document.close(); 11 frameObj.contentWindow.document.close();
12 frameObj.onload = function() {
13 if (window.testRunner)
14 testRunner.notifyDone();
15 };
9 } 16 }
10 </script> 17 </script>
11 </head> 18 </head>
12 <body> 19 <body>
13 <br>This is a test to see if a file:// url is sent out as the referrer for a sub resource load<br> 20 <br>This is a test to see if a file:// url is sent out as the referrer for a sub resource load<br>
14 <iframe id="myFrame" src="about:blank" onLoad="getImage();"></iframe> 21 <iframe id="myFrame" src="about:blank" onLoad="setTimeout(getImage, 0);"></ifram e>
15 <br>The above image will tell you success or failure - green or red<br> 22 <br>The above image will tell you success or failure - green or red<br>
16 </body> 23 </body>
17 </html> 24 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698