Tomasz Pyra wrote:
How to deterimne that what browser will do when OnLocationChange is called?

OnStateChange is only called when new page is loading.

Right. So you can keep track of whether a page is currently loading via OnStateChange.


I could use global loaging_flag what will be set up when OnStateChange will receive STATE_START, and will be cleared when OnStateChange will receive STATE_STOP.
But is it safe?

It's probably safe if you do it per-listener, not globally.

I don't know is OnStateChange with START, is always executed before OnLocationChange. Can you confirm that?

Yes. Please file a bug (cc darin, biesi, and me) on the fact that this isn't clearly documented?


That's harder (especially since the jump could have been to something other than a "named anchor").

Now I need only to handle named anchors.

So you don't care about:

<a href="#foo">Link</a>

<div id="foo">Target</a>

?

-Boris
_______________________________________________
mozilla-embedding mailing list
mozilla-embedding@mozilla.org
http://mail.mozilla.org/listinfo/mozilla-embedding

Reply via email to