blob: a2b70299a58320e1a3940068661ff67197757577 [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() {
originalLocation = location;
__proto__ = targetWindow;
shouldBeTrue('location === originalLocation');
shouldBeTrue('this.location === originalLocation');
}
</script>
</body>
</html>