Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: dom/base/test/mochitest.toml
<!DOCTYPE HTML>
<html>
<!--
-->
<head>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1648887">Mozilla Bug 1648887</a>
<p id="display"></p>
<script class="testbody" type="text/javascript">
add_task(async function test() {
await SpecialPowers.pushPrefEnv({
set: [
["dom.disable_open_during_load", false],
],
});
let iframe = document.querySelector("iframe");
iframe.contentDocument.getElementById('a').click();
iframe.contentWindow.open(document.createElement('r').outerHTML,'','h').close();
ok(true, "Should not crash");
});
</script>
</pre>
</body>
</html>