| <!DOCTYPE html> |
| <html> |
| <head> |
| <meta http-equiv="Content-Security-Policy" content="img-src *"> |
| <script src="/js-test-resources/js-test-pre.js"></script> |
| <script> |
| window.jsTestIsAsync = true; |
| |
| function didLoadImage() |
| { |
| testPassed("did load image."); |
| finishJSTest(); |
| } |
| |
| function failedToLoadImage() |
| { |
| testFailed("failed to load image."); |
| finishJSTest(); |
| } |
| </script> |
| </head> |
| <body> |
| <script> |
| description("This tests that loading an image with an HTTPS URL is allowed when the page has Content Security Policy "img-src *"."); |
| </script> |
| <img src="https://127.0.0.1:8443/security/resources/abe.png" onload="didLoadImage()" onerror="failedToLoadImage()"> |
| <script src="/js-test-resources/js-test-post.js"></script> |
| </body> |
| </html> |