blob: 622cd6a1cb79b8e25744aeda42b8782393c694ae [file] [log] [blame]
<html>
<head>
<script>
function runTest()
{
document.getElementById("testResult").innerHTML = (function() {
try {
var cookie = document.cookie;
}
catch (err) {
if (err.name.indexOf("SecurityError") != -1)
return "PASS";
}
return "FAIL: SecurityError not raised";
})();
}
</script>
</head>
<body onload="runTest();">
<p id="testResult">FAIL: Script didn't run</p>
</body>
</html>