I am trying to implement nsIDOMGlobalPropertyInitializer::Init().
I have an existing object (based on Google Gears) that I am trying to extend to support JAVASCRIPT_GLOBAL_PROPERTY_CATEGORY (since JAVASCRIPT_DOM_CLASS does not seem to work in FF17 anymore).
My implementation of nsIDOMGlobalPropertyInitializer::Init() is being called, but how do I convert my C++ object (it implements nsISupports and exposes the appropriate IDL) to JS:Value to make my object available in Java Script?
If I return NS_ERROR_NOT_IMPLEMENTED or do not implement the nsIDOMGlobalPropertyInitializer interface, FF (rightfully) complains that the no method or property is exposed by the object.