Bug 1686668 [wpt PR 27185] - Update wpt metadata, a=testonly
[gecko.git] / dom / base / test / test_bug1648887.html
bloba18508613726af1da8cda4a2686897da89bd1ad2
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">
17 /** Test for Bug 1648887 **/
18 add_task(async function test() {
19 await SpecialPowers.pushPrefEnv({
20 set: [
21 ["dom.disable_open_during_load", false],
23 });
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 });
31 </script>
32 </pre>
33 </body>
34 </html>