blob: 98614ae66cd910aa85696e68f6de72b87d3d1053 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<p>
Test that a plug-in that causes its Widget to be destroyed during setWindow does not cause a crash.
</p>
<embed id="plug-in" type="application/x-webkit-test-netscape" onSetWindow="handleSetWindow()">
<script>
var plugIn = document.getElementById("plug-in");
var count = 0;
if (window.testRunner)
testRunner.dumpAsText();
function handleSetWindow()
{
count++;
if (count == 2)
plugIn.style.width = "500px";
else if (count == 3)
plugIn.parentNode.removeChild(plugIn);
}
handleSetWindow();
</script>
|