| <!DOCTYPE html> |
| <html> |
| <head> |
| <meta http-equiv="Content-Security-Policy" content="style-src * 'unsafe-inline'"> |
| <script src="/js-test-resources/js-test-pre.js"></script> |
| <script> |
| window.jsTestIsAsync = true; |
| |
| function didLoadStylesheet() |
| { |
| testPassed("did load stylesheet."); |
| finishJSTest(); |
| } |
| |
| function failedToLoadStylesheet() |
| { |
| testFailed("failed to load stylesheet."); |
| finishJSTest(); |
| } |
| </script> |
| <link rel="stylesheet" href="http://127.0.0.1:8000/security/contentSecurityPolicy/resources/style-set-red.css" onload="didLoadStylesheet()" onerror="failedToLoadStylesheet()"> |
| </head> |
| <body> |
| <script> |
| description("This tests that loading a stylesheet with an HTTP URL is allowed when the page has Content Security Policy "style-src *"."); |
| </script> |
| <script src="/js-test-resources/js-test-post.js"></script> |
| </body> |
| </html> |