Bug 412822 nsIFilePicker makes it hard to drop in other url systems r=neil a=dsicore
authortimeless@mozdev.org
Tue, 26 Feb 2008 08:50:27 -0800
changeset 12266 7962f01056292368de168f0e73637916941917bc
parent 12265 08fae77e79c5c58b185b09e469ad67e0832ef655
child 12267 e8357d7b2f21f0ab4af3f04f1adbaf0a27d8fd80
push idunknown
push userunknown
push dateunknown
reviewersneil, dsicore
bugs412822
milestone1.9b4pre
Bug 412822 nsIFilePicker makes it hard to drop in other url systems r=neil a=dsicore
widget/src/gtk2/nsFilePicker.cpp
--- a/widget/src/gtk2/nsFilePicker.cpp
+++ b/widget/src/gtk2/nsFilePicker.cpp
@@ -494,17 +494,17 @@ nsFilePicker::GetFile(nsILocalFile **aFi
 
   return CallQueryInterface(file, aFile);
 }
 
 NS_IMETHODIMP
 nsFilePicker::GetFileURL(nsIURI **aFileURL)
 {
   *aFileURL = nsnull;
-  return NS_NewFileURI(aFileURL, mFileURL);
+  return NS_NewURI(aFileURL, mFileURL);
 }
 
 NS_IMETHODIMP
 nsFilePicker::GetFiles(nsISimpleEnumerator **aFiles)
 {
   NS_ENSURE_ARG_POINTER(aFiles);
 
   if (mMode == nsIFilePicker::modeOpenMultiple) {