Bug 691144 - Open Containing Folder should preselect the file f=stanio r=neil a=callek
authorIan Neal <iann_cvs@blueyonder.co.uk>
Mon, 10 Oct 2011 22:52:59 +0100
changeset 9273 8d75a54332db2d9dcd4116367626cf9d1b46a824
parent 9272 8b08d6f23c0f16a103cce33cf650434c260aeca7
child 9274 e9cb3f0268cf7fdd8f0ec60028882011ab6ff3c2
push id230
push userbugzilla@standard8.plus.com
push dateTue, 08 Nov 2011 22:55:24 +0000
treeherdercomm-beta@63dad5648415 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersneil, callek
bugs691144
Bug 691144 - Open Containing Folder should preselect the file f=stanio r=neil a=callek
suite/common/utilityOverlay.js
--- a/suite/common/utilityOverlay.js
+++ b/suite/common/utilityOverlay.js
@@ -1624,10 +1624,11 @@ function GetFileFromString(aString)
 {
   // If empty string just return null.
   if (!aString)
     return null;
 
   let commandLine = Components.classes["@mozilla.org/toolkit/command-line;1"]
                               .createInstance(Components.interfaces.nsICommandLine);
   let uri = commandLine.resolveURI(aString);
-  return uri instanceof Components.interfaces.nsIFileURL ? uri.file : null;
+  return uri instanceof Components.interfaces.nsIFileURL ?
+         uri.file.QueryInterface(Components.interfaces.nsILocalFile) : null;
 }