blob: af87115ebb1f7943b78a66fc93b6c4986ed6652b [file] [log] [blame]
<html>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
var target;
function check_blank() {
var x = target.location.private;
result.innerHTML = "Test PASSED";
if (window.testRunner)
testRunner.notifyDone();
}
function reload_blank() {
target = window.frames[0];
target.location = "about:blank";
window.setTimeout("check_blank()", 0);
}
window.onload = reload_blank;
</script>
<body>
This tests the same-origin check on about:blank loaded in a subframe.
The test passes if the browser does not crash. You should also see
"Test PASSED" below.
<br>
<iframe src="about:blank"></iframe>
<div id="result">Test FAILED</div>
</body>
</html>