blob: bb1a3f6f63d466262ac1a28a479b0aea090d9443 [file] [log] [blame]
<?php
header("X-XSS-Protection: 1; mode=block");
?>
<!DOCTYPE html>
<html>
<head>
<script src="http://127.0.0.1:8000/security/xssAuditor/resources/utilities.js"></script>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.dumpChildFramesAsText();
testRunner.waitUntilDone();
testRunner.setXSSAuditorEnabled(true);
}
</script>
</head>
<body>
<p>This tests that the header X-XSS-Protection is not inherited by the iframe below:</p>
<iframe id="frame" name="frame" onload="checkIfFrameLocationMatchesSrcAndCallDone('frame')" src="http://127.0.0.1:8000/security/xssAuditor/resources/echo-intertag.pl?test=/security/xssAuditor/full-block-iframe-no-inherit.html&q=<script>alert(/XSS/)</script><p>If you see this message and no JavaScript alert() then the test PASSED.</p>">
</iframe>
</body>
</html>