| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="resources/report-test.js"></script> | 4 <script src="resources/report-test.js"></script> |
| 5 <meta http-equiv="Content-Security-Policy" content="img-src 'none'; report-u
ri resources/save-report.php"> | 5 <meta http-equiv="Content-Security-Policy" content="img-src 'none'; report-u
ri resources/save-report.php?test=report-blocked-file-uri.html"> |
| 6 </head> | 6 </head> |
| 7 <body> | 7 <body> |
| 8 <script> | 8 <script> |
| 9 testRunner.addOriginAccessWhitelistEntry('http://127.0.0.1:8000', 'file'
, '', true); | 9 testRunner.addOriginAccessWhitelistEntry('http://127.0.0.1:8000', 'file'
, '', true); |
| 10 var localImageLocation = testRunner.pathToLocalResource('file:///tmp/Lay
outTests/http/tests/security/resources/compass.jpg'); | 10 var localImageLocation = testRunner.pathToLocalResource('file:///tmp/Lay
outTests/http/tests/security/resources/compass.jpg'); |
| 11 | 11 |
| 12 var localImageElement = document.createElement('img'); | 12 var localImageElement = document.createElement('img'); |
| 13 localImageElement.src = localImageLocation; | 13 localImageElement.src = localImageLocation; |
| 14 document.body.appendChild(localImageElement); | 14 document.body.appendChild(localImageElement); |
| 15 </script> | 15 </script> |
| 16 <script src="resources/go-to-echo-report.js"></script> | 16 <script src="resources/go-to-echo-report.js"></script> |
| 17 </body> | 17 </body> |
| 18 </html> | 18 </html> |
| OLD | NEW |