Yes, both of my interfaces are in xpti.dat. I opened Tools->Error Console and eval'd "Components.interfaces.nsIPhishListener", got "nsIPhishListener" in response; does that seem correct? Or should have I gotten my guid instead?
Unfortunately, I don't have the background to answer your question about the priviledge issue; I copied the test js from elsewhere. -----Original Message----- From: Nickolay Ponomarev [mailto:[EMAIL PROTECTED] Sent: Monday, December 04, 2006 2:38 PM To: Schmidt, Paul Cc: [email protected] Subject: Re: XPCOM cpp to js callback On 12/4/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > In an nutshell, for those who don't want to read through all that: I'm > trying to call back from C++ to a JavaScript object using an interface I > created with an idl etc. etc. based on many newsgroup threads and coding > examples I've found. > > However, the C++ call that's supposed to be invoking the method on the > JavaScript object is returning with 0x80004005 (NS_ERROR_FAILURE). > Clearly, I'm getting into the XPCOM dispatch code, but it's not relaying > into my JS object. > > What can cause this nondescript failure code? > I haven't seen this error, but did you check that the interface got registered (by looking in xpti.dat or evaluating Components.interfaces.nsIPhishListener in JS console). Also am I right in assuming that all the JS code is privileged? (In that case you don't need the enablePrivilege call). Nickolay > > --- snip --- > _______________________________________________ > dev-tech-xpcom mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-tech-xpcom > _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
