| <!DOCTYPE html> |
| <html> |
| <head> |
| <script> |
| function pass() |
| { |
| window.opener.postMessage("PASS did not load image.", "*"); |
| } |
| |
| function fail() |
| { |
| window.opener.postMessage("FAIL did load image.", "*"); |
| } |
| |
| window.onload = function () |
| { |
| var image = new Image; |
| image.onerror = pass; |
| image.onload = fail; |
| image.src = "http://127.0.0.1:8080/resources/redirect.php?url=https://localhost:8443/security/mixedContent/resources/subresource/protected-image.php"; |
| document.body.appendChild(image); |
| } |
| </script> |
| </head> |
| <body> |
| </body> |
| </html> |