Instead of going that low-level, try this:
Given an nsIWebBrowser, use GetContentDOMWindow to get an nsIDOMWindow.
 From that, use GetDocument to get an nsIDOMDocument.

-Conrad

Mark Schmidt wrote:

> Hey all,
> 
> Is it possible to get the JSRuntime pointer while embedding?
> 
> In a nut shell, I want to add some elements to the DOM but I want to add it
> to the current JSRuntime (or JSContext*??) of the embedded mozilla instance.
> 
> Sorry if I'm mangling up the terminology.  Is there a better way?  Am I
> saying it correctly?
> 
> Thanks,
> Mark
> 
> 
> 
> 



Reply via email to