rem: var defaultServer = smtpService.defaultServer; fillSmtpServers(serverList,smtpService.smtpServers, defaultServer);   for (i=0; i< oldSelectedIds.length; i++) { var element = document.getElementById(oldSelectedIds[i]); if (element) serverList.selectItem(element); } 
add:  for (i=0; i< oldSelectedIds.length; i++) { var element = document.getElementById(oldSelectedIds[i]); if (element) serverList.selectItem(element); } } catch(ex){} 
context: function refreshServerList(){    // save selection    var oldSelectedIds = new Array;    serverList.clearSelection();    var selectedItems = serverList.selectedItems;    for (var i=0; i< selectedItems.length; i++)        oldSelectedIds[i] = selectedItems[0].id;    // remove all children    while (serverList.hasChildNodes())        serverList.removeChild(serverList.lastChild);    var defaultServer = smtpService.defaultServer;    fillSmtpServers(serverList,smtpService.smtpServers, defaultServer);    // restore selection    for (i=0; i< oldSelectedIds.length; i++) {        var element = document.getElementById(oldSelectedIds[i]);        if (element)            serverList.selectItem(element);    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0da9749dd26401d082af881a0a17776ed56de676/SmtpServerList.js/buggy/mailnews/base/prefs/resources/content/SmtpServerList.js