| <!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 "image-src *" 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> |