blob: ce4f439eaa9fe3d68d2b2aeb6eb18e968b7488d0 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="http://localhost:8000/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 (e) {}
checkIfFrameLocationMatchesSrcAndCallDone('frame');
}
</script>
</head>
<body>
<p>There should be no content in the iframe below:</p>
<iframe id="frame" onload="checkframe()" src="http://127.0.0.1:8000/security/xssAuditor/resources/echo-intertag.pl?enable-full-block=1&q=<script>alert(String.fromCharCode(0x58,0x53,0x53))</script>">
</iframe>
</body>
</html>