rem: 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) { var uri = gList.selectedItems[0].id; var handlerOverride = new HandlerOverride(uri); removeOverride(handlerOverride.mimeType); gList.setAttribute("ref", "urn:mimetypes"); 
add:  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; } 
context: function removeType(){  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) {    var uri = gList.selectedItems[0].id;    var handlerOverride = new HandlerOverride(uri);    removeOverride(handlerOverride.mimeType);    gList.setAttribute("ref", "urn:mimetypes");  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/bb6ace680cf0a4bb53cdab74a837fc9bc795ce7c/pref-applications.js/clean/suite/common/pref/pref-applications.js