rem: if (extString) { var desc = mimeInfo.description; if (!desc) { var key = plural ? "unknownDescriptionFilesPluralFilter" : "unknownDescriptionFilesFilter"; desc = getStringBundle().formatStringFromName(key, [defaultDesc], 1); } aFilePicker.appendFilter(desc, extString); } else { aFilePicker.appendFilters(Components.interfaces.nsIFilePicker.filterAll); } 
add: if (extString) aFilePicker.appendFilter(mimeInfo.description, extString); 
context: function appendFiltersForContentType(aFilePicker, aContentType, aFileExtension, aSaveMode){  var bundle = getStringBundle();      switch (aContentType) {  case "text/html":    if (aSaveMode == MODE_COMPLETE)      aFilePicker.appendFilter(bundle.GetStringFromName("WebPageCompleteFilter"), "*.htm; *.html");    aFilePicker.appendFilter(bundle.GetStringFromName("WebPageHTMLOnlyFilter"), "*.htm; *.html");    if (aSaveMode == MODE_COMPLETE)      aFilePicker.appendFilters(Components.interfaces.nsIFilePicker.filterText);    break;  default:    var mimeInfo = getMIMEInfoForType(aContentType, aFileExtension);    if (mimeInfo) {      var extEnumerator = mimeInfo.getFileExtensions();      var extString = "";      var defaultDesc = "";      var plural = false;      while (extEnumerator.hasMore()) {        if (defaultDesc) {          defaultDesc += ", ";          plural = true;        }        var extension = extEnumerator.getNext();        if (extString)          extString += "; ";    // If adding more than one extension,                                // separate by semi-colon        extString += "*." + extension;        defaultDesc += extension.toUpperCase();      }      if (extString) {        var desc = mimeInfo.description;        if (!desc) {           var key = plural ? "unknownDescriptionFilesPluralFilter" :                              "unknownDescriptionFilesFilter";          desc = getStringBundle().formatStringFromName(key, [defaultDesc], 1);        }        aFilePicker.appendFilter(desc, extString);      } else {        aFilePicker.appendFilters(Components.interfaces.nsIFilePicker.filterAll);      }            }    else      aFilePicker.appendFilters(Components.interfaces.nsIFilePicker.filterAll);    break;  }} 
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/0545d3f114e89dd60d62918be774dce26056e457/contentAreaUtils.js/clean/toolkit/content/contentAreaUtils.js