blob: 9b6853fcddd2af4e6e1f2133c93568269a017b07 [file] [log] [blame]
<!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 &quot;img-src *&quot;.");
</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>