blob: 85bc106c7e860ace7b39cdec886968ea48044fa0 [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="https://127.0.0.1:8443/security/contentSecurityPolicy/resources/style-set-red.css" onload="didLoadStylesheet()" onerror="failedToLoadStylesheet()">
</head>
<body>
<script>
description("This tests that loading a stylesheet with an HTTPS 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>