rem: param.SetInt(2, listBox.selectedIndex ); 
add: for (var i=0; i<numItems; i++) { if (elements[i]) { param.SetInt(2, i ); break; } } 
context: function commonDialogOnCancel() {  dump("commonDialogOnCancel \n");  param.SetInt(2, listBox.selectedIndex );  param.SetInt(0, 1 );  return true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/c0f0c55d05660ddda5abdb432772a577370e1424/selectDialog.js/buggy/xpfe/global/resources/content/selectDialog.js