add:  #ifdef XP_WIN  aFile = aFile.replace(/[\s.]+$/, ""); #endif  
context: function getNormalizedLeafName(aFile, aDefaultExtension){  if (!aDefaultExtension)    return aFile;    // Fix up the file name we're saving to to include the default extension  const stdURLContractID = "@mozilla.org/network/standard-url;1";  const stdURLIID = Components.interfaces.nsIURL;  var url = Components.classes[stdURLContractID].createInstance(stdURLIID);  url.filePath = aFile;    if (url.fileExtension != aDefaultExtension)    return aFile + "." + aDefaultExtension;  return aFile;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/bd2d88b03a5411cbd162242055c29d6f8862c0a3/contentAreaUtils.js/clean/toolkit/content/contentAreaUtils.js