> That sounds like a security error where the object has to implement > nsIClassInfo or something like that. Unfortunately, I don't know the > correct solution (I think it is related to the classinfo flag DOM_OBJECT).
Yes, you are right. I have even found Mozilla source code where this error is being thrown: http://www.mit.edu/afs/sipb/project/mozilla/random-stuff/mozilla.bak/caps/src/nsScriptSecurityManager.cpp but I don't know how to fix it. I have already implemented nsClassInfoMixin class (which extends nsClassInfo), but still got the same error. P.S. I have found it!! :> I have added this to my QueryInterface(): if(aIID.Equals(kIClassInfoIID)) { *aInstancePtr = NS_STATIC_CAST(nsIClassInfo*, this); AddRef(); return NS_OK; } _______________________________________________ Mozilla-xpcom mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-xpcom
