add:  case "application/xhtml+xml": if (aSaveMode == MODE_COMPLETE) aFilePicker.appendFilter(bundle.GetStringFromName("WebPageCompleteFilter"), "*.xht; *.xhtml"); aFilePicker.appendFilter(bundle.GetStringFromName("WebPageXHTMLOnlyFilter"), "*.xht; *.xhtml"); if (aSaveMode == MODE_COMPLETE) aFilePicker.appendFilters(Components.interfaces.nsIFilePicker.filterText); break;  case "text/xml": case "application/xml": if (aSaveMode == MODE_COMPLETE) aFilePicker.appendFilter(bundle.GetStringFromName("WebPageCompleteFilter"), "*.xml"); aFilePicker.appendFilter(bundle.GetStringFromName("WebPageXMLOnlyFilter"), "*.xml");  break;  
context: function appendFiltersForContentType(aFilePicker, aContentType, 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);    if (mimeInfo) {      var extCount = { };      var extList = { };      mimeInfo.GetFileExtensions(extCount, extList);            var extString = "";      for (var i = 0; i < extCount.value; ++i) {        if (i > 0)           extString += "; "; // If adding more than one extension, separate by semi-colon        extString += "*." + extList.value[i];      }            if (extCount.value > 0) {        aFilePicker.appendFilter(mimeInfo.Description, extString);      } else {        aFilePicker.appendFilters(Components.interfaces.nsIFilePicker.filterAll);      }            }    else      aFilePicker.appendFilters(Components.interfaces.nsIFilePicker.filterAll);    break;  }} 
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/1c26725d454bea19ada6ba478d8f516978f8c5d1/contentAreaUtils.js/buggy/xpfe/communicator/resources/content/contentAreaUtils.js