>
> Date: Wed, 16 Dec 2009 09:57:27 -0800
> From: Boris Zbarsky <[email protected]>
> To: [email protected]
> Subject: Re: Problems detecting event
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> On 12/16/09 6:49 AM, Blaine Monkey wrote:
> >> I assume your EmbedEventListener QI implementation is correct and such?
> >
> > I don't use QI to obtain the EmbedEventListener object, I used a pointer.
>
> Yes, I know. But the code you're calling into may well QI it. Hence me
> wanting to double-check that your class actually implements QI to the
> right interfaces.
>
> > I don't know why isn't it detecting when the document is loaded. The end
> of
> > a request is when the page is loaded, isn't it?
>
> No, but STATE_STOP|STATE_IS_DOCUMENT is more or less pageload, yes.
>
> At this point, I can't tell you much more given what you've said so far.
> You'll have to do some debugging...
>
> -Boris
>
I saw in a post (I can't find it now) that it's recommended to implement the
nsIWebProgressListener in the same class as nsIWebBrowserChrome interface. I
do this and now it works fine, detecting all the events. I suspect that I
forgot the implementation/assignation of something in my code, but I don't
know what.
Thanks for your help.
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding