[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

Reply via email to