blob: 85897a8ea93a23ff334adddffe72c42563c28814 [file] [log] [blame]
<html>
<script>
if (window.testRunner)
testRunner.dumpAsText();
var docRef = undefined;
window.onload = function()
{
document.getElementById("console").innerHTML =
(docRef ? "FAIL: cross-domain script access allowed from sandboxed iframe"
: "PASS: cross-domain script access disallowed from sandboxed iframe");
}
</script>
<body>
<p>This test verifies that sandboxed iframe prevents cross-domain
script access. It will print &quot;PASS&quot; on success.</p>
<iframe sandbox="allow-scripts"
src="http://127.0.0.1:8000/security/resources/xss-DENIED-sandboxed-iframe-attacker.html">
</iframe>
<div id="console">FAIL: Script didn't run</div>
</body>
</html>