blob: d5d5565a2b42ec96e958bb5a5c2e42fc3b6ff7bc [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="/js-test-resources/js-test.js"></script>
<script>
if (window.testRunner)
testRunner.setXSSAuditorEnabled(true);
window.jsTestIsAsync = true;
function checkFrames() {
shouldBeNull('xssed.contentDocument');
shouldThrow('xssed.contentWindow.location.href');
finishJSTest();
}
var xssed;
var crossorigin;
window.onload = function () {
xssed = document.getElementById('xssed');
crossorigin = document.getElementById('crossorigin');
xssed.onload = checkFrames;
xssed.src = 'http://localhost:8000/security/xssAuditor/resources/echo-intertag.pl?enable-full-block=1&q=<script>alert(String.fromCharCode(0x58,0x53,0x53));<' + '/script>';
};
</script>
</head>
<body>
<iframe id='xssed'></iframe>
<iframe id='crossorigin' src='http://localhost:8000/security/resources/innocent-victim.html'></iframe>
</body>
</html>