326644-1-inner.xhtml (810B)
1 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:html="http://www.w3.org/1999/xhtml" 2 title="Testcase bug 326644 - Crash when changing enumerated properties of objects in xul"> 3 4 <html:script><![CDATA[ 5 var timers=0; 6 function doe(aObj, aNested, aCurrentTimer){ 7 var temp =0; 8 for (var i in aObj) { 9 try { 10 if (typeof aObj[i] == 'object') { 11 if (aNested >= 19 || aObj[i] == window.location) 12 continue; 13 setTimeout(doe,500, aObj[i], ++aNested, timers); 14 timers++; 15 } 16 } 17 catch(e){} 18 try { 19 //if (temp == 68 && aNested == 21 && aCurrentTimer >= 116) { 20 // alert(i + '-'+ aObj[i]); 21 // return; 22 // } 23 aObj[i]= i; 24 temp+=1; 25 } 26 catch (e) { 27 28 } 29 } 30 } 31 var s=document.getElementsByTagName('window')[0]; 32 setTimeout(doe,100, s, 0); 33 ]]></html:script> 34 </window>