diff --git a/suite/common/contentAreaUtils.js b/suite/common/contentAreaUtils.js index 24f2c2e97475..d3d4ec2ca719 100644 --- a/suite/common/contentAreaUtils.js +++ b/suite/common/contentAreaUtils.js @@ -698,6 +698,9 @@ function getNormalizedLeafName(aFile, aDefaultExtension) function getDefaultExtension(aFilename, aURI, aContentType) { + if (aContentType == "text/plain" || aContentType == "application/octet-stream" || aURI.scheme == "ftp") + return ""; // temporary fix for bug 120327 + // This mirrors some code in nsExternalHelperAppService::DoContent // Use the filename first and then the URI if that fails