blob: 6aa1cd15f6075059ef7d3ee6e886ff42f72a60d4 [file] [log] [blame]
<script>
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.waitUntilDone();
}
function success()
{
document.getElementById("console").innerHTML = "PASS: cross-site assignment of location.host not allowed";
if (window.layoutTestController)
layoutTestController.notifyDone();
}
</script>
<body onload="success()">
<iframe src="http://localhost:8000/security/resources/xss-DENIED-assign-location-host-attacker.html"></iframe>
<div id="console"></div>
</body>
</html>