Mikkel Blanné wrote:
You just have to check in OnStateChange, whether the nsIDOMWindow that finished loading is the top nsIDOMWindow!That actually doesn't work right, for cases when a subframe is being navigated in after the page has finished loading.
That explains why it's working for me, because I never need to navigate subframes in my application :)
The thing to look for is a STATE_STOP with STATE_IS_NETWORK set. Per the documentation on nsIWebProgressListener, this should be what you want in this case.
I did try that once, and it worked. I just thought STATE_IS_NETWORK sounded a bit wrong for what I needed. I can see now that nsIWebProgressListener.idl has been updated with a substantial amount of documentation since the 1.7 release, which is what I'm still working on. Thanks for that! It was rather difficult to guess which states meant what in connection with other states... There's still room for improvement in the user friendlyness department though :)
/Mikkel _______________________________________________ mozilla-embedding mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-embedding
