[tbb-commits] [torbutton/master] Bug 10573: Replace deprecated nsILocalFile with nsIFile

gk at torproject.org gk at torproject.org
Mon Dec 18 07:38:14 UTC 2017


commit d3c99991b207bb51dcaf477e2d879eb2234282a0
Author: ArunaMaurya221B <aruna.maurya12 at gmail.com>
Date:   Wed Dec 6 17:08:11 2017 +0530

    Bug 10573: Replace deprecated nsILocalFile with nsIFile
---
 src/chrome/content/torbutton.js       | 2 +-
 src/components/cookie-jar-selector.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/chrome/content/torbutton.js b/src/chrome/content/torbutton.js
index 4fa2fb9..9abc1c5 100644
--- a/src/chrome/content/torbutton.js
+++ b/src/chrome/content/torbutton.js
@@ -831,7 +831,7 @@ function torbutton_socket_readline(input) {
 // Bug 1506 P4: Control port interaction. Needed for New Identity.
 function torbutton_read_authentication_cookie(path) {
   var file = Components.classes['@mozilla.org/file/local;1']
-             .createInstance(Components.interfaces.nsILocalFile);
+             .createInstance(Components.interfaces.nsIFile);
   file.initWithPath(path);
   var fileStream = Components.classes['@mozilla.org/network/file-input-stream;1']
                    .createInstance(Components.interfaces.nsIFileInputStream);
diff --git a/src/components/cookie-jar-selector.js b/src/components/cookie-jar-selector.js
index 778118d..f6d579e 100644
--- a/src/components/cookie-jar-selector.js
+++ b/src/components/cookie-jar-selector.js
@@ -53,7 +53,7 @@ function CookieJarSelector() {
     var file = 
       Cc["@mozilla.org/file/directory_service;1"]
       .getService(Ci.nsIProperties)
-      .get(loc, Ci.nsILocalFile)
+      .get(loc, Ci.nsIFile)
       .clone();
     file.append(filename); 
     return file;



More information about the tbb-commits mailing list