rem: if (gTree.selectedItems && gTree.selectedItems.length && gTree.selectedItems[0]) { var uri = gTree.selectedItems[0].id; 
add: if (gList.selectedItems && gList.selectedItems.length && gList.selectedItems[0]) { var uri = gList.selectedItems[0].id; 
context: function selectApplication(){  if (gTree.selectedItems && gTree.selectedItems.length && gTree.selectedItems[0]) {    var uri = gTree.selectedItems[0].id;    var handlerOverride = new HandlerOverride(uri);    gExtensionField.setAttribute("value", handlerOverride.extensions);    gMIMETypeField.setAttribute("value", handlerOverride.mimeType);        // figure out how this type is handled    if (handlerOverride.handleInternal == "true")      gHandlerField.setAttribute("value",                                 gPrefApplicationsBundle.getString("handleInternally"));    else if (handlerOverride.saveToDisk == "true")      gHandlerField.setAttribute("value",                                 gPrefApplicationsBundle.getString("saveToDisk"));    else       gHandlerField.setAttribute("value", handlerOverride.appDisplayName);    var ext;    var posOfFirstSpace = handlerOverride.extensions.indexOf(" ");    if (posOfFirstSpace > -1)      ext = handlerOverride.extensions.substr(0, posOfFirstSpace);    else      ext = handlerOverride.extensions;    var imageString = "moz-icon://" + "dummy." + ext.toLowerCase() + "?size=32&contentType=" + handlerOverride.mimeType;    document.getElementById("contentTypeImage").setAttribute("src", imageString);    updateLockedButtonState(handlerOverride.isEditable == "true");    delete handlerOverride;  } else {    updateLockedButtonState(false)    gHandlerField.removeAttribute("value");    document.getElementById("contentTypeImage").removeAttribute("src");    gExtensionField.removeAttribute("value");    gMIMETypeField.removeAttribute("value");  }} 
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d38a0937d9c93a0a9d913e2ac781e4328bb8cc73/pref-applications.js/buggy/xpfe/components/prefwindow/resources/content/pref-applications.js