[tor-bugs] #10573 [Tor Launcher]: `nsILocalFile` should be replaced with `nsIFile`

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Jan 7 02:23:37 UTC 2014


#10573: `nsILocalFile` should be replaced with `nsIFile`
--------------------------+-----------------------
 Reporter:  cypherpunks   |          Owner:  brade
     Type:  defect        |         Status:  new
 Priority:  normal        |      Milestone:
Component:  Tor Launcher  |        Version:
 Keywords:                |  Actual Points:
Parent ID:                |         Points:
--------------------------+-----------------------
 {{{
 Warning: Starting with Gecko 14, `nsILocalFile` inherits all functions and
 attributes from `nsIFile`, meaning that you no longer need to use
 `nsILocalFile`. If your add-on doesn't support versions older than 14, you
 should use `nsIFile` instead of `nsILocalFile`.

 See bug https://bugzilla.mozilla.org/show_bug.cgi?id=682360 for more
 information.
 components/tl-protocol.js
 {
   var file =
 Cc['@mozilla.org/file/local;1'].createInstance(Ci.nsILocalFile);
   file.initWithPath(aPath);
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/10573>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list