rem: var uri = gList.selectedItems[0].id; 
add: var uri = gList.view.getResourceAtIndex(gList.currentIndex).Value; 
context: function removeType(){  // Only prompt if setting is "useHelperApp".  var uri = gList.selectedItems[0].id;  var handlerOverride = new HandlerOverride(uri);  if ( !handlerOverride.useSystemDefault && !handlerOverride.saveToDisk ) {    var titleMsg = gPrefApplicationsBundle.getString("removeHandlerTitle");    var dialogMsg = gPrefApplicationsBundle.getString("removeHandler");    dialogMsg = dialogMsg.replace(/%n/g, "\n");    var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService);    var remove = promptService.confirm(window, titleMsg, dialogMsg);    if (!remove) {      return;    }  }  removeOverride(handlerOverride.mimeType);  gList.builder.rebuild();  selectApplication();}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/ebd6ce725d3353b8bade824db68d831c7f5ec37b/pref-applications.js/clean/suite/common/pref/pref-applications.js