Commit d3c99991 authored by ArunaMaurya221B's avatar ArunaMaurya221B Committed by Georg Koppen
Browse files

Bug 10573: Replace deprecated nsILocalFile with nsIFile

parent 0e9fe510
......@@ -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);
......
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment