test_bug1648887.html (928B)
1 <!DOCTYPE HTML> 2 <html> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=1648887 5 --> 6 <head> 7 <title>Test for Bug 1648887</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=1648887">Mozilla Bug 1648887</a> 13 <p id="display"></p> 14 <iframe srcdoc="<a id='a' href='http://w'>"></iframe> 15 <script class="testbody" type="text/javascript"> 16 17 /** Test for Bug 1648887 */ 18 add_task(async function test() { 19 await SpecialPowers.pushPrefEnv({ 20 set: [ 21 ["dom.disable_open_during_load", false], 22 ], 23 }); 24 25 let iframe = document.querySelector("iframe"); 26 iframe.contentDocument.getElementById('a').click(); 27 iframe.contentWindow.open(document.createElement('r').outerHTML,'','h').close(); 28 ok(true, "Should not crash"); 29 }); 30 31 </script> 32 </pre> 33 </body> 34 </html>