blob: d8b535ed478e60712f61ef4fa9116b5908f2c343 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
<p>
Test for a crash when deactivating a document that had adopted a <form>
element.
</p>
<p>
The test passed if it did not crash.
</p>
<iframe id="iframe"></iframe>
<script>
var iframe = document.getElementById("iframe");
onload = function()
{
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.waitUntilDone();
}
document.body.offsetTop;
var otherDocument = iframe.contentDocument;
var form = document.createElement("form");
otherDocument.adoptNode(form);
form = null;
setTimeout(finish, 0);
}
function finish()
{
if (window.GCController)
GCController.collect()
else {
for (var i = 0; i < 10000; i++)
var foo = { };
}
iframe.parentNode.removeChild(iframe);
if (window.layoutTestController)
layoutTestController.notifyDone();
}
</script>
|