blob: 1eadc69c0617ba9373ae1faf5459743fcc2ef5bf [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Security-Policy" content="connect-src 'none'">
<script>
if (window.testRunner)
testRunner.dumpAsText();
</script>
</head>
<body>
<pre id="console"></pre>
<script>
function log(msg)
{
document.getElementById("console").appendChild(document.createTextNode(msg + "\n"));
}
try {
navigator.sendBeacon("http://localhost:8000/security/contentSecurityPolicy/resources/echo-report.php");
log("Pass");
} catch(e) {
log("Fail");
}
</script>
</body>
</html>