4 https://bugzilla.mozilla.org/show_bug.cgi?id=1648887
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" />
12 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=1648887">Mozilla Bug
1648887</a>
14 <iframe srcdoc=
"<a id='a' href='http://w'>"></iframe>
15 <script class=
"testbody" type=
"text/javascript">
17 /** Test for Bug
1648887 **/
18 add_task(async function test() {
19 await SpecialPowers.pushPrefEnv({
21 [
"dom.disable_open_during_load", false],
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");