OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="resources/cross-frame-access.js"></script> | 3 <script src="resources/cross-frame-access.js"></script> |
4 </head> | 4 </head> |
5 <body> | 5 <body> |
6 <iframe src="http://localhost:8000/security/resources/iframe-with-element.html"
style=""> | 6 <iframe src="http://localhost:8000/security/resources/iframe-with-element.html"
style=""> |
7 </iframe> | 7 </iframe> |
8 <pre id="console"></pre> | 8 <pre id="console"></pre> |
9 <script> | 9 <script> |
10 if (window.testRunner) | 10 if (window.testRunner) |
11 testRunner.dumpAsText(); | 11 testRunner.dumpAsText(); |
12 | 12 |
13 log("Tests that making other frame window a prototype doesn't expose that window
subframe"); | 13 log("Tests that making other frame window a prototype doesn't expose that window
subframe"); |
14 | 14 |
15 targetWindow = frames[0]; | 15 targetWindow = frames[0]; |
16 | 16 |
17 window.onload = function() { | 17 window.onload = function() { |
18 __proto__ = targetWindow; | 18 __proto__ = targetWindow; |
19 shouldBeUndefined('targetWindow.myinput'); | 19 shouldThrowException('targetWindow.myinput'); |
20 } | 20 } |
21 </script> | 21 </script> |
22 </body> | 22 </body> |
23 </html> | 23 </html> |
OLD | NEW |