[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #10573 [Tor Launcher]: `nsILocalFile` should be replaced with `nsIFile`
#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs