MozillaZine

Thunderbird attach file dialog broken after v60

Talk about add-ons and extension development.
bralphs
 
Posts: 6
Joined: February 17th, 2015, 1:54 pm

Post Posted November 12th, 2018, 3:23 pm

I used to call the code below to open the browse for file dialog & have it attached to a message, after upgrading to v60 it's no longer working & giving the following error:
NS_ERROR_XPC_BAD_IID: Component returned failure code: 0x80570018 (NS_ERROR_XPC_BAD_IID) [nsIJSCID.createInstance]

I've already replaced nsILocalFile with nsIFile, per here: http://wiki.mozilla.org/Thunderbird/Add-ons_Guide_57
Is there something else I'm missing to get it to work?

Code: Select all
var localFile = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsIFile);
localFile.initWithPath(ProjPath);

bralphs
 
Posts: 6
Joined: February 17th, 2015, 1:54 pm

Post Posted November 12th, 2018, 3:59 pm

Actually never mind.
I think the nslFile did fix it, I was just still loading my old code.

Return to Extension Development


Who is online

Users browsing this forum: No registered users and 1 guest