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.


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.

-Boris

_______________________________________________
mozilla-embedding mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to