OLD | NEW |
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> |
OLD | NEW |