test_bug707749.html (891B)
1 <!DOCTYPE HTML> 2 <html> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=707749 5 --> 6 <head> 7 <title>Test for Bug 707749</title> 8 <script src="/tests/SimpleTest/SimpleTest.js"></script> 9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> 10 </head> 11 <body> 12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=707749 ">Mozilla Bug 707749 </a> 13 <p id="display"></p> 14 <div id="content" style="display: none"> 15 16 </div> 17 <pre id="test"> 18 <script class="testbody" type="text/javascript"> 19 20 /** Test for Bug 707749 */ 21 SimpleTest.waitForExplicitFinish(); 22 function loaded() { 23 $('ifr').contentDocument.open(); 24 $('ifr').contentDocument.close(); 25 ok(true, "Don't throw an exception from contentDocument.open()"); 26 SimpleTest.finish(); 27 } 28 29 </script> 30 <iframe id="ifr" onload="loaded()" srcdoc="<script>navigator</script>"></iframe> 31 </pre> 32 </body> 33 </html>