summaryrefslogtreecommitdiffstats
path: root/dom/xul/crashtests/326644-1-inner.xhtml
blob: 63ed9b72120355f5ecfcc1893688a500d32e42ca (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
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:html="http://www.w3.org/1999/xhtml"
 title="Testcase bug 326644 - Crash when changing enumerated properties of objects in xul">

<html:script><![CDATA[
var timers=0;
function doe(aObj, aNested, aCurrentTimer){
var temp =0;
for (var i in aObj) {
try {
if (typeof aObj[i] == 'object') {
  if (aNested >= 19 || aObj[i] == window.location)
    continue;
  setTimeout(doe,500, aObj[i], ++aNested, timers);
  timers++;
}
}
catch(e){}
try {
 //if (temp == 68 && aNested == 21 && aCurrentTimer >= 116) {
 // alert(i + '-'+ aObj[i]);
 // return;
 // }
 aObj[i]= i;
 temp+=1;
}
catch (e) {

}
}
}
var s=document.getElementsByTagName('window')[0];
setTimeout(doe,100, s, 0);
]]></html:script>
</window>