3 <script src=
"../../resources/js-test.js"></script>
5 description('Ensure that removing an iframe from the tree results in frame destruction');
7 var frame
= document
.createElement('iframe');
9 var p
= frame
.parentNode
;
14 document
.body
.appendChild(frame
);
15 frame
.contentWindow
.onunload
= handler
;
16 frame
.parentNode
.removeChild(frame
)
17 shouldBeNull("frame.contentWindow");
19 var div
= document
.body
.appendChild(document
.createElement('div'));
20 div
.appendChild(frame
);
21 div
.removeChild(frame
);
22 shouldBeNull("frame.contentWindow");
23 debug('Did not crash');