> var nsIURI Components.classes[ > "@mozilla.org/network/standard-url;1" > ].createInstance(Components.interfaces.nsIURI); > > nsIURI.spec = "file:///tmp/test.file";
This is the wrong way to create a URI and in particular it creates a file:// uri that does not know that it's a file uri (does not QI to nsIFileURL). You want to use nsIIoService::newURI to create the URI object. Boris -- Ray's Rule of Precision: Measure with a micrometer. Mark with chalk. Cut with an axe.
