<!DOCTYPE> | |
<html> | |
<head> | |
<script> | |
if (window.testRunner) | |
testRunner.dumpAsText(); | |
</script> | |
</head> | |
<body> | |
<p>This tests that a <meta http-equiv="X-WebKit-CSP"> is ignored if it is not a descendent of <head>.</p> | |
<meta http-equiv="X-WebKit-CSP" content="script-src 'self'"> | |
<p id="result">FAIL Content Security Policy should have been ignored. But was honored.</p> | |
<script> | |
document.getElementById("result").textContent = 'PASS Content Security Policy was ignored.'; | |
</script> | |
</body> | |
</html> |