[tor-commits] [tor-launcher/master] Bug 10573: Replace deprecated nsILocalFile with nsIFile

gk at torproject.org gk at torproject.org
Mon Dec 18 07:42:39 UTC 2017


commit e24ab106dffdf4f0504c2f60005e213ebd47d458
Author: ArunaMaurya221B <aruna.maurya12 at gmail.com>
Date:   Wed Dec 6 16:57:06 2017 +0530

    Bug 10573: Replace deprecated nsILocalFile with nsIFile
---
 src/components/tl-protocol.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/components/tl-protocol.js b/src/components/tl-protocol.js
index 68c6530..a89b84d 100644
--- a/src/components/tl-protocol.js
+++ b/src/components/tl-protocol.js
@@ -1351,7 +1351,7 @@ TorProtocolService.prototype =
 
   _read_authentication_cookie: function(aPath)
   {
-    var file = Cc['@mozilla.org/file/local;1'].createInstance(Ci.nsILocalFile);
+    var file = Cc['@mozilla.org/file/local;1'].createInstance(Ci.nsIFile);
     file.initWithPath(aPath);
     var fileStream = Cc["@mozilla.org/network/file-input-stream;1"]
                        .createInstance(Ci.nsIFileInputStream);



More information about the tor-commits mailing list