rem: function getNormalizedLeafName(aFile, aContentType) 
add: function getNormalizedLeafName(aFile, aDefaultExtension) 
context: function getNormalizedLeafName(aFile, aContentType){  // Fix up the file name we're saving to so that if the user enters  // no extension, an appropriate one is appended.   var leafName = aFile;  var mimeInfo = getMIMEInfoForType(aContentType);  if (mimeInfo) {    var extCount = { };    var extList = { };    mimeInfo.GetFileExtensions(extCount, extList);    const stdURLContractID = "@mozilla.org/network/standard-url;1";    const stdURLIID = Components.interfaces.nsIURI;    var uri = Components.classes[stdURLContractID].createInstance(stdURLIID);    var url = uri.QueryInterface(Components.interfaces.nsIURL);     url.filePath = aFile;        if (aContentType == "text/html") {      if ((url.fileExtension &&            url.fileExtension != "htm" && url.fileExtension != "html") ||          (!url.fileExtension))        return leafName + ".html";    }    if (!url.fileExtension)      return leafName + "." + extList.value[0];  }   return leafName;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/9b01fccfdbe156ffb843db7aa57e653d009c49ec/contentAreaUtils.js/buggy/suite/common/contentAreaUtils.js