blob: c3042bcf1cd2677c56a57f5ece6e152bb2e03e3d [file]
<!DOCTYPE html>
<html>
<head>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.dumpFrameLoadCallbacks();
}
</script>
<meta http-equiv="Content-Security-Policy" content="script-src http://127.0.0.1:8000/resources/slow-script.pl http://127.0.0.1:8000/resources/checkPreload.js 'nonce-check-for-preload'; style-src 'nonce-dummy'">
<script src="http://127.0.0.1:8000/resources/slow-script.pl?delay=1000"></script>
<script src="http://127.0.0.1:8000/resources/checkPreload.js"></script>
<link rel="stylesheet" href="resources/small_mq.css" nonce="dummy">
</head>
<body>
This test makes sure that the Preload scanner preloads a stylesheet resource with a nonce attribute.
<br>
<script nonce="check-for-preload">
checkForPreload("resources/small_mq.css", true);
</script>
</body>
</html>