| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script> | 3 <script> |
| 4 function getImage() | 4 function getImage() |
| 5 { | 5 { |
| 6 var frameObj = document.getElementById("myFrame"); | 6 var frameObj = document.getElementById("myFrame"); |
| 7 frameObj.contentWindow.document.write("<img src=\"http://127.0.0.1:8
000/security/resources/showRefererImage.php\"/>"); | 7 frameObj.contentWindow.document.write("<img src=\"http://127.0.0.1:8
000/security/resources/showRefererImage.php\"/>"); |
| 8 frameObj.contentWindow.document.close(); |
| 8 } | 9 } |
| 9 </script> | 10 </script> |
| 10 </head> | 11 </head> |
| 11 <body> | 12 <body> |
| 12 <br>This is a test to see if a file:// url is sent out as the referrer for a sub
resource load<br> | 13 <br>This is a test to see if a file:// url is sent out as the referrer for a sub
resource load<br> |
| 13 <iframe id="myFrame" src="about:blank" onLoad="getImage();"></iframe> | 14 <iframe id="myFrame" src="about:blank" onLoad="getImage();"></iframe> |
| 14 <br>The above image will tell you success or failure - green or red<br> | 15 <br>The above image will tell you success or failure - green or red<br> |
| 15 </body> | 16 </body> |
| 16 </html> | 17 </html> |
| OLD | NEW |