mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
3c69aeea28
commit
97633288ba
@ -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
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user