зеркало из https://github.com/mozilla/gecko-dev.git
Fix part of bug 120327. Patch by Jonas Jorgensen <jonasj@jonasj.dk>,
r=bzbarsky, sr=brendan,ben, gladness=all
This commit is contained in:
Родитель
1230d04346
Коммит
efcd6b1b08
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче