blob: 52ee51f31287e67c8679c0792c710f1bd06a5969 [file] [log] [blame]
<script src="cross-frame-access.js"></script>
<body>
<div id=console></div>
<script>
var parentWindow = window.parent;
parentWindow.testFunction = function()
{
shouldBeFalse("canGet('parentWindow.location.href')");
if (window.testRunner)
testRunner.notifyDone();
}
var func = parentWindow.testFunction;
document.domain = document.domain; // after this window.parent properties are inaccessible
func();
</script>