зеркало из https://github.com/mozilla/pjs.git
fix for unix file picker not handling null window parents bug 34328 r=brendan, slamm
fix for mailnews' file->save as dialog not saving files on unix in due to its handling of file extentions and filters. this code now uses nsIFilePicker. fixes nsbeta2+ bug 31096. r=mscott
This commit is contained in:
Родитель
1a806f96ed
Коммит
89566c343f
|
@ -803,7 +803,7 @@ function RevealSearchPanel()
|
|||
try {
|
||||
var fp = Components.classes["component://mozilla/filepicker"].createInstance(nsIFilePicker);
|
||||
fp.init(window, bundle.GetStringFromName("openFile"), nsIFilePicker.modeOpen);
|
||||
fp.setFilters(nsIFilePicker.filterHTML | nsIFilePicker.filterText |
|
||||
fp.appendFilters(nsIFilePicker.filterHTML | nsIFilePicker.filterText |
|
||||
nsIFilePicker.filterAll | nsIFilePicker.filterImages | nsIFilePicker.filterXML);
|
||||
if (fp.show() == nsIFilePicker.returnOK) {
|
||||
openNewWindowWith(fp.fileURL.spec);
|
||||
|
|
Загрузка…
Ссылка в новой задаче