I’m trying to update an addon with the line
return Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService).newChannel2(addon.getResourceURI(file).spec, null, null).name;
I get the error
Warning: ‘nsIOService::NewChannel()’ deprecated, please use ‘nsIOService::NewChannel2()’ bootstrap.js:27:9
How can this line produce this error. In the line it says newChannel2 and in the error it says don’t use newChannel but use newChannel2 instead?
Blessings