On Sun, Jul 18, 2004 at 11:31:54PM -0700, yueweng wrote:
>   nsCOMPtr<nsIWebBrowser> pBrowser(do_GetService
> ("@mozilla.org/embedding/browser/nsWebBrowser;1"));

I don't think this is a service, but even if it were, Mozilla does not
use it.


If you are implementing nsIWebProgressListener, why don't you get the
document from the nsIWebProgress argument? It offers this attribute:
 97    * The DOM Window associated with the WebProgress instance.
 98    */
 99   readonly attribute nsIDOMWindow DOMWindow;

And from a window you can easily get to a document:
 60    * Accessor for the document in this window.
 61    */
 62   readonly attribute nsIDOMDocument                     document;
-- 
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to