Babele Dunnit wrote:
STATE_START & STATE_IS_DOCUMENT & STATE_IS_NETWORK & STATE_IS_WINDOW &
STATE_IS_REQUEST

This will trigger for any load in a window (including subframes); certainly if the parent window is no longer loading.

1) is there a guaranteed and unique combination of OnStateChange flags
which means "this is the page you requested"? (answer: to me, it seems
"no")

No, but OnStateChange passes in the exact webprogress object that the navigation is happening in. If you only care about toplevel (not subframe) loads, why not just check that you have the right webprogress object?

-Boris
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to