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