3 <div id=one
><iframe></iframe></div>
6 <script src=
"../../resources/js-test.js"></script>
8 description("Setting an iframe's src in a pagehide handler should not create a frame (nor a crash)");
9 var div1
= document
.getElementById('one');
10 var div2
= document
.getElementById('two');
11 var div3
= document
.getElementById('three');
12 var subframe
= document
.querySelector('iframe');
13 subframe
.contentWindow
.onpagehide = function() {
14 div2
.appendChild(div1
);
15 subframe
.src
= 'javascript:void(0)';
16 shouldBeNull("subframe.contentWindow");
19 div3
.appendChild(subframe
);
21 debug("did not crash");