blob: c7ef31db4ec0983e02240d21374168231b1a057e [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="/security/xssAuditor/resources/utilities.js"></script>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.dumpChildFramesAsText();
testRunner.waitUntilDone();
testRunner.setXSSAuditorEnabled(true);
}
function checkframe()
{
try {
var ref = document.getElementById("frame").contentDocument.referrer;
alert('Referrer is "' + ref + '"');
} catch (e1) {
console.log(e1);
}
checkIfFrameLocationMatchesSrcAndCallDone('frame');
}
</script>
</head>
<body>
<p>There should be no content in the iframe below:</p>
<iframe id="frame" name="frame" onload="checkframe()" src="http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/full-block-script-tag-cross-domain.html&enable-full-block=1&q=<script>alert(String.fromCharCode(0x58,0x53,0x53))</script>">
</iframe>
</body>
</html>