blob: 2ec873567da465b520077c04de2e8fdfebf29118 [file] [log] [blame]
<html>
<head>
<script src="/js-test-resources/js-test-pre.js"></script>
<script src="resources/cross-frame-access.js"></script>
</head>
<body>
<iframe src="http://localhost:8000/" style=""></iframe>
<pre id="console"></pre>
<script>
description("Tests that making other frame window a prototype doesn't expose that window properties");
jsTestIsAsync = true;
targetWindow = frames[0];
window.onload = function() {
originalLocation = location;
shouldThrowErrorName("__proto__ = targetWindow", "TypeError");
shouldBeTrue('location === originalLocation');
shouldBeTrue('this.location === originalLocation');
finishJSTest();
}
</script>
<script src="/js-test-resources/js-test-post.js"></script>
</body>
</html>