mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 06:35:42 +00:00
Use the right extension for appending filters to the filepicker. Bug 273498,
r=mconnor
This commit is contained in:
parent
1ff4a395f8
commit
a84fe5ad7b
@ -375,14 +375,7 @@ function getTargetFile(aData, aSniffer, aContentType, aIsDocument, aSkipPrompt,
|
||||
fp.init(window, bundle.GetStringFromName(titleKey),
|
||||
Components.interfaces.nsIFilePicker.modeSave);
|
||||
|
||||
var urlExt = null;
|
||||
try {
|
||||
var url = aSniffer.uri.QueryInterface(Components.interfaces.nsIURL);
|
||||
urlExt = url.fileExtension;
|
||||
}
|
||||
catch (e) {
|
||||
}
|
||||
appendFiltersForContentType(fp, aContentType, urlExt,
|
||||
appendFiltersForContentType(fp, aContentType, defaultExtension,
|
||||
aIsDocument ? MODE_COMPLETE : MODE_FILEONLY);
|
||||
|
||||
if (dir)
|
||||
|
Loading…
Reference in New Issue
Block a user