On May 10, 9:58 am, Boris Zbarsky <[email protected]> wrote:
> hui wrote:
> >     I am trying to figure out how to know one page is "totally"
> > loaded. I tried the DocumentLoaded() function, but it is called
> > multiple times when loading one page. My guess: it is called whenever
> > one iframe is finished loading.
>
> Very likely.  But it doesn't tell you which document has loaded?  That
> sounds like a major bug in the API.  Is it filed?
>
> -Boris

Hi, Boris
Thanks for the reply.

I am not sure what you mean by "which document has loaded", perhaps
you mean is it an iframe or a html? I don't know how to differentiate
those two in these "call backs".  Perhaps we can choose the call back
function some arguments to figure that out? It should be better if we
can have some thing like   view->finished   property in the MozWebView
class or a similar function return the status of the whole document.

I don't know whether this should be a bug, I know in MS Trident, they
have the same problem with their "OnDocumentComplete" function, but we
have a bypass by figuring out who is calling this call back, is it one
iframe, or top level window. I hope we have the same work around in
mozilla.

Looking forward to further suggestions on this topic!
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to