bug1292522_page.html 450 B

123456789101112131415
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Test for Bug 1292522</title>
  5. <script>
  6. var check_var = function() {
  7. opener.postMessage(document.getElementsByTagName('iframe')[0].contentWindow.testvar, "http://mochi.test:8888");
  8. }
  9. </script>
  10. </head>
  11. <body>
  12. <iframe src="http://test2.example.org:80/tests/dom/html/test/bug1292522_iframe.html" onload="document.domain='example.org';check_var();"></iframe>
  13. </body>
  14. </html>