"Phil McLachlan" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Now that I've been able to do some more thorough testing and clean-up, I 
> will post the solution I have used to register components for JS, so 
> others may benefit.  This should be easier than looking at the 
> XMLHttpRequest example, because it is the least amount of things you need 
> to do, and it will compile with MOZILLA_STRICT_API.  I still have not 
> figured out how to prevent JS attributes from being GC on the XPCOM 
> component yet.

To answer my own question, I have been able to get expando JS attributes to 
work using the approach in Gecko 1.8.1 of nsIDOMGCParticipant 
implementation. To do the same, you'll also need a script helper that wraps 
an existing DOM helper that you can call to do the PostCreate, AddProperty, 
Mark, Finalize, and perhaps NewResolve. I did not bother with the 1.8.0 
branch of Gecko.


_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to