netscape.public.mozilla.dom would be a better place for this question, I think...

Damien O'Brien wrote:
nsIDOMWindow *wind = NULL; wwatch->GetActiveWindow(&wind);

FWIW, you are leaking the window here.

if (wind) { nsIDOMDocument *dom_doc = NULL; wind->GetDocument(&dom_doc);

And the document.

                                nsCOMPtr<nsIDOMHTMLDocument>
                                htmlDomDocument(do_QueryInterface(dom_doc));

This will be an XUL document representing the browser chrome, not the HTML document loaded inside it.
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to