Jacek Prucia wrote:
[EMAIL PROTECTED] (Jacek Prucia) wrote in message news:<[EMAIL PROTECTED]>...

Doh! Dumb me!


Looks like what I need to check is:
nsIChannel.LOAD_INITIAL_DOCUMENT_URI

[...]


The problem is that this field is set all the time to 524228 decimal


Somehow I missed the fact, that LOAD_INITIAL_DOCUMENT_URI is not
boolean variable, but flag for nsIHttpChannel.loadFlags. What I need
is:

if (nsIHttpChannel.loadFlags &
        nsIHttpChannel.LOAD_INITIAL_DOCUMENT_URI) {
   // user triggered action (+ 3xx redirects)
} else {
   // stuff referenced from HTML
}

Sorry for sloppy IDL reading and for cluttering this group with
obvious questions.

regards,
--
Jacek Prucia


no problem ;-)

as for the questions you had about getting more contextual info... there isn't a very good way to do that right now. there are some really ugly ways to do it, but i don't advise you going that route.

darin




Reply via email to