mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-05 05:30:29 +00:00
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:
parent
7b1433c386
commit
ac620507bd
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user