blob: 29442f98225916273192c6f7b469c082d3d64e01 [file] [log] [blame]
<html>
<head>
<script src="resources/cross-frame-access.js"></script>
</head>
<body>
<iframe src="http://localhost:8000/" style=""></iframe>
<pre id="console"></pre>
<script>
if (window.testRunner)
testRunner.dumpAsText();
log("Tests that making other frame window a prototype doesn't expose that window properties");
targetWindow = frames[0];
window.onload = function() {
originalInnerHeight = innerHeight;
__proto__ = targetWindow;
shouldBeTrue('innerHeight === originalInnerHeight');
shouldBeTrue('this.innerHeight === originalInnerHeight');
}
</script>
</body>
</html>