blob: 3883482614667bee55411ad027977c522cd377d3 [file] [log] [blame]
<script>
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.waitUntilDone();
}
function finish()
{
if (location.reload != "hax0red")
document.getElementById("console").innerHTML = "PASS: cross-site assignment of location.replace not allowed";
else
document.getElementById("console").innerHTML = "FAIL: cross-site assignment of location.replace was allowed!";
if (window.layoutTestController)
layoutTestController.notifyDone();
}
</script>
<body onload="finish()">
<iframe src="http://localhost:8000/security/resources/xss-DENIED-assign-location-reload-attacker.html"></iframe>
<div id="console"></div>
</body>
</html>