test_bug789713.html (1141B)
1 <!DOCTYPE HTML> 2 <html> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=789713 5 --> 6 <head> 7 <meta charset="utf-8"> 8 <title>Test for Bug 789713</title> 9 <script src="/tests/SimpleTest/SimpleTest.js"></script> 10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 11 </head> 12 <body> 13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=789713">Mozilla Bug 789713</a> 14 <p id="display"></p> 15 <div id="content" style="display: none"> 16 <iframe id="ifr"></iframe> 17 </div> 18 <pre id="test"> 19 <script type="application/javascript"> 20 21 /** Test for Bug 789713 **/ 22 23 // We can't set document.domain on mochi.test, because it's forbidden to set 24 // document.domain to a TLD. 25 var ifr = document.getElementById('ifr'); 26 27 SimpleTest.waitForExplicitFinish(); 28 ifr.src = window.location.toString().replace("mochi.test:8888", "test1.example.org") 29 .replace("test_bug789713", "file_bug789713") 30 .split('?')[0]; 31 window.onmessage = function(message) { 32 ok(message.data, "Test succeeded and didn't crash"); 33 SimpleTest.finish(); 34 } 35 36 </script> 37 </pre> 38 </body> 39 </html>