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