2 <title>Testcase bug
351236 - Crash [@ nsGetInterface::operator()] with designMode iframes, removing styles, removing iframes, reloading, etc
</title>
4 function designmodes(i
){
6 window
.frames
[0].document
.designMode
='on';
7 window
.frames
[0].focus();
8 window
.frames
[0].getSelection().collapse(window
.frames
[0].document
.body
.childNodes
[0],window
.frames
[0].document
.body
.childNodes
[0].length
-2)
9 window
.frames
[0].document
.execCommand('inserthtml', false, 'tesxt ');
12 setTimeout(designmodes
,50);
15 function removestyles(){
16 document
.getElementsByTagName('iframe')[0].removeAttribute('style');
17 document
.getElementsByTagName('q')[0].removeAttribute('style');
21 setTimeout(designmodes
,200);
22 setTimeout(removestyles
,500);
23 setTimeout(function() {document
.removeChild(document
.documentElement
);}, 1000);
24 setTimeout(function() {window
.location
.reload();}, 1500);
31 This page should not crash Mozilla within
2 seconds
<br>
32 <q style=
"display: table-row;">
33 <iframe style=
"display: table-row;"></iframe>