Vijay wrote:
Here is the GetDOM function implementation as well...
NS_IMETHODIMP CBrowserImpl::GetDOM(nsIDOMDocument* doc)
{
nsCOMPtr<nsIDOMWindow> window;
nsCOMPtr<nsIDOMDocument> ndoc = (nsCOMPtr<nsIDOMDocument>)doc;
Er... what? That doesn't look to me like it should do anything sane at all. In
particular, after this code runs in your example as:
nsCOMPtr<nsIDOMDocument> doc;
pBrowserFrame->GetBrowserImpl()->GetDOM(doc);
|doc| will be null as far as I can tell.
-Boris
_______________________________________________
mozilla-embedding mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-embedding