blob: 0f6008186855b9eef6f40055d0db32773fc6c38b [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Security-Policy" content="img-src *">
<script>
if (window.internals && window.internals.settings)
internals.settings.setAllowContentSecurityPolicySourceStarToMatchAnyProtocol(true);
</script>
</head>
<body>
<p>This tests that loading image with a file URL is allowed when the page has Content Security Policy &quot;image-src *&quot; and the WebKit setting AllowContentSecurityPolicySourceStarToMatchAnyProtocol is enabled. This test PASSED if you see a green square below. Otherwise, it FAILED.</p>
<img src="../../fast/dom/HTMLImageElement/resources/green.png" width="128" height="128" alt="FAIL">
</body>
</html>