Thunderbird attach file dialog broken after v60

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

Thunderbird attach file dialog broken after v60

Post by bralphs »

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

Re: Thunderbird attach file dialog broken after v60

Post by bralphs »

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