| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head><title>Page with unsafe contents</title> | 2 <head><title>Page with unsafe contents</title> |
| 3 <script> | 3 <script> |
| 4 var foo = null; | 4 var foo = null; |
| 5 | 5 |
| 6 function IsFooSet() { | 6 function IsFooSet() { |
| 7 return foo != null; | 7 return foo != null; |
| 8 } | 8 } |
| 9 | 9 |
| 10 function ImageWidth() { | 10 function ImageWidth() { |
| 11 return document.getElementById("bad_image").width; | 11 return document.getElementById("bad_image").width; |
| 12 } | 12 } |
| 13 </script> | 13 </script> |
| 14 <script src="https://127.0.0.1:9666/files/ssl/set_foo.js"></script> | 14 <script src="https://REPLACE_WITH_HOST_AND_PORT/files/ssl/set_foo.js"></script> |
| 15 </head> | 15 </head> |
| 16 | 16 |
| 17 <body> | 17 <body> |
| 18 This page contains an image which is served over an insecure HTTPS connection...
<br> | 18 This page contains an image which is served over an insecure HTTPS connection...
<br> |
| 19 <img id="bad_image" src="https://127.0.0.1:9666/files/ssl/google_files/logo.gif"
/> | 19 <img id="bad_image" src="https://REPLACE_WITH_HOST_AND_PORT/files/ssl/google_fil
es/logo.gif"/> |
| 20 | 20 |
| 21 <br><br> | 21 <br><br> |
| 22 And an IFrame served over insecure HTTPS...<br> | 22 And an IFrame served over insecure HTTPS...<br> |
| 23 <iframe id="bad_iframe" src="https://127.0.0.1:9666/files/ssl/bad_iframe.html"/> | 23 <iframe id="bad_iframe" src="https://REPLACE_WITH_HOST_AND_PORT/files/ssl/bad_if
rame.html"/> |
| 24 | 24 |
| 25 <br><br> | 25 <br><br> |
| 26 And even worse, some JavaScript served over insecure HTTPS...<br> | 26 And even worse, some JavaScript served over insecure HTTPS...<br> |
| 27 | 27 |
| 28 | 28 |
| 29 </body> | 29 </body> |
| 30 </html> | 30 </html> |
| OLD | NEW |