зеркало из https://github.com/mozilla/pjs.git
Make nsIFileURL scriptable and QueryInterfaceable. fix bug #34335 and 34328 and 34470. Minor cleanups on unix file picker dialog
This commit is contained in:
Родитель
4702dd137a
Коммит
36df0c739f
|
@ -714,12 +714,8 @@ function RevealSearchPanel()
|
|||
fp.init(window, bundle.GetStringFromName("openFile"), nsIFilePicker.modeOpen);
|
||||
fp.setFilters(nsIFilePicker.filterAll);
|
||||
fp.show();
|
||||
|
||||
// Hack to get a file: url from an nsIFile
|
||||
var tempFileSpec = Components.classes["component://netscape/filespec"].createInstance(Components.interfaces.nsIFileSpec);
|
||||
tempFileSpec.nativePath = fp.file.path;
|
||||
|
||||
openNewWindowWith(tempFileSpec.URLString);
|
||||
|
||||
openNewWindowWith(fp.fileURL.spec);
|
||||
} catch (ex) { }
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче