blob: 42a6766b8a0d734d2e24654fad5c57ecd0917b9f [file] [log] [blame]
<!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 &quot;style-src *&quot;.");
</script>
<script src="/js-test-resources/js-test-post.js"></script>
</body>
</html>