Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / local / file-url-sent-as-referer.html
blob243b50760e581e517dae1b041c1193a0882b2ea4
1 <html>
2 <head>
3 <script>
4 if (window.testRunner)
5 testRunner.waitUntilDone();
7 function getImage()
9 var frameObj = document.getElementById("myFrame");
10 frameObj.contentWindow.document.write("<img src=\"http://127.0.0.1:8000/security/resources/showRefererImage.php\"/>");
11 frameObj.contentWindow.document.close();
12 frameObj.onload = function() {
13 if (window.testRunner)
14 testRunner.notifyDone();
17 </script>
18 </head>
19 <body>
20 <br>This is a test to see if a file:// url is sent out as the referrer for a subresource load<br>
21 <iframe id="myFrame" src="about:blank" onLoad="setTimeout(getImage, 0);"></iframe>
22 <br>The above image will tell you success or failure - green or red<br>
23 </body>
24 </html>