Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <html> | |
| 2 <body> | |
| 3 | |
| 4 <div id="child-div"></div> | |
| 5 | |
| 6 <script type="application/dart"> | |
| 7 import 'dart:html'; | |
| 8 import 'dart:js'; | |
| 9 | |
| 10 var childWindow; | |
| 11 var childDocument; | |
| 12 var childHistory; | |
| 13 var childLocation; | |
| 14 | |
| 15 var parentWindow; | |
| 16 var parentDocument; | |
| 17 var parentHistory; | |
| 18 var parentLocation; | |
| 19 | |
| 20 void main() { | |
| 21 print("Child"); | |
| 22 | |
| 23 childWindow = window; | |
| 24 childDocument = window.document; | |
| 25 childHistory = window.history; | |
| 26 childLocation = window.location; | |
| 27 | |
| 28 parentWindow = context['parent']; | |
| 29 parentDocument = context['parent']['document']; | |
| 30 parentHistory = context['parent']['history']; | |
| 31 parentLocation = context['parent']['location']; | |
| 32 } | |
| 33 | |
| 34 </script> | |
| 35 | |
| 36 </body> | |
| 37 </html> | |
| OLD | NEW |