test_bug478219.xhtml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <html xmlns="http://www.w3.org/1999/xhtml">
  2. <!--
  3. https://bugzilla.mozilla.org/show_bug.cgi?id=478219
  4. -->
  5. <head>
  6. <title>Test for Bug 478219</title>
  7. <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  8. <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
  9. <style type="text/css">
  10. </style>
  11. </head>
  12. <body>
  13. <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=478219">Mozilla Bug 478219</a>
  14. <input style="overflow: scroll;-moz-binding:url(#xbl);" type="image"/>
  15. <pre id="test">
  16. <script class="testbody" type="text/javascript">
  17. var win = window.open('', '', 'width=100,height=100');
  18. win.close();
  19. is(win.closed, true, "Window should have been opened");
  20. is(win.opener, window, "Opened window should have as opener this window");
  21. </script>
  22. </pre>
  23. <bindings xmlns="http://www.mozilla.org/xbl">
  24. <binding id="xbl" inheritstyle="false">
  25. <content>
  26. <div xmlns="http://www.w3.org/1999/xhtml" contenteditable="true">
  27. <style>style {-moz-binding:url(#xbl);</style>
  28. </div>
  29. <textarea xmlns="http://www.w3.org/1999/xhtml"></textarea>
  30. </content>
  31. </binding>
  32. </bindings>
  33. </body>
  34. </html>