<html> | |
<head> | |
<script src="resources/cross-frame-access.js"></script> | |
</head> | |
<body> | |
<iframe src="http://localhost:8000/security/resources/iframe-with-element.html" 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 subframe"); | |
targetWindow = frames[0]; | |
window.onload = function() { | |
__proto__ = targetWindow; | |
shouldBeUndefined('targetWindow.myinput'); | |
} | |
</script> | |
</body> | |
</html> |