Bug 784591. Wait for the DOMContentLoaded event in the child iframe before removing the node from the document in this test. r=jdm

This commit is contained in:
Timothy Nikkel 2013-02-06 19:24:15 -06:00
parent 3c69aeea28
commit 97633288ba
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
asserts(0-1) load ownerdiscard.html # bug 804291
asserts(0-2) load ownerdiscard.html # bug 804291
load 83804-1.gif
load 89341-1.gif

View File

@ -3,7 +3,7 @@
<body>
<div id=tCF0>
<img id=victim src=ie.png>
<iframe src=discardframe.htm></iframe>
<iframe id="i" src=discardframe.htm></iframe>
</div>
<script>
const Ci = Components.interfaces;
@ -37,7 +37,7 @@
function initCF() {
setTimeout(function() { document.adoptNode(tCF0); }, 0);
}
document.addEventListener("DOMContentLoaded", initCF, false);
document.getElementById("i").contentWindow.addEventListener("DOMContentLoaded", initCF, false);
</script>
</body>
</html>