Fix part of bug 120327. Patch by Jonas Jorgensen <jonasj@jonasj.dk>,

r=bzbarsky, sr=brendan,ben, gladness=all
This commit is contained in:
bzbarsky%mit.edu 2006-07-29 05:40:27 +00:00
Родитель 1230d04346
Коммит efcd6b1b08
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -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