[EMAIL PROTECTED] wrote:
>I have a plugin that I need to register as a nsIWebProgressListener on the
>nsIWebBrowser that is displaying the plugin. I can use the WindowMediator
>service to get the nsIXULWindow to which the plugin belongs and then get the
>nsIDocShell of the PrimaryContentShell of this XULWindow.
>
neither nsIXULWindow or nsIDocShell are public; they are private.
> However, inorder to
>be able to register the listener, I need access to the particular
>nsIWebBrowser. How do I do this.
>
the embedding api's assume that you update the window mediator w/ the
window hierarchy as it changes. this assumes that you own the window
model and hierarchy (which would give you ther nsIWebBrowser for free).
if you're trying to do this from a plugin, I'm not sure how it would be
done.
>I dont want to set the listener on the nsIWebProgress as i understand this is
>a Service and will notify me when a load happens in any open window of the
>browser.
>
nsIWebProgress is currently private as well, and yes, you would get
global notifications.
Jud