зеркало из https://github.com/mozilla/pjs.git
Restrict the fix for bug 116938 to Windows-only to preserve OS/2 and
Linux users' sanity. Bug 144923, r=law, sr=mscott
This commit is contained in:
Родитель
8892f15a70
Коммит
33c1213ac6
|
@ -899,7 +899,7 @@ void nsExternalAppHandler::ExtractSuggestedFileNameFromChannel(nsIChannel* aChan
|
|||
// The filename must be ASCII, see RFC 2183, section 2.3
|
||||
CopyASCIItoUCS2(Substring(start, iter), mSuggestedFileName);
|
||||
|
||||
#ifndef XP_MAC
|
||||
#ifdef XP_WIN
|
||||
// Make sure extension is still correct.
|
||||
EnsureSuggestedFileName();
|
||||
#endif
|
||||
|
@ -1039,7 +1039,7 @@ nsresult nsExternalAppHandler::SetUpTempFile(nsIChannel * aChannel)
|
|||
NS_UnescapeURL(leafName);
|
||||
mSuggestedFileName = NS_ConvertUTF8toUCS2(leafName); // XXX leafName may not be UTF-8
|
||||
|
||||
#ifndef XP_MAC
|
||||
#ifdef XP_WIN
|
||||
// Make sure extension is still correct.
|
||||
EnsureSuggestedFileName();
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче