зеркало из https://github.com/mozilla/gecko-dev.git
Use the right extension for appending filters to the filepicker. Bug 273498,
r=mconnor
This commit is contained in:
Родитель
03155d5f84
Коммит
2e153d18de
|
@ -375,14 +375,7 @@ function getTargetFile(aData, aSniffer, aContentType, aIsDocument, aSkipPrompt,
|
||||||
fp.init(window, bundle.GetStringFromName(titleKey),
|
fp.init(window, bundle.GetStringFromName(titleKey),
|
||||||
Components.interfaces.nsIFilePicker.modeSave);
|
Components.interfaces.nsIFilePicker.modeSave);
|
||||||
|
|
||||||
var urlExt = null;
|
appendFiltersForContentType(fp, aContentType, defaultExtension,
|
||||||
try {
|
|
||||||
var url = aSniffer.uri.QueryInterface(Components.interfaces.nsIURL);
|
|
||||||
urlExt = url.fileExtension;
|
|
||||||
}
|
|
||||||
catch (e) {
|
|
||||||
}
|
|
||||||
appendFiltersForContentType(fp, aContentType, urlExt,
|
|
||||||
aIsDocument ? MODE_COMPLETE : MODE_FILEONLY);
|
aIsDocument ? MODE_COMPLETE : MODE_FILEONLY);
|
||||||
|
|
||||||
if (dir)
|
if (dir)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче