While my application is observing requests going through
(onModifyRequest + onExamineResponse) it needs to check if current URI
is result of user action (typed URL, clicked link) or result of HTML
parsing (fetching images, css and everything else referenced in HTML).
Looks like what I need to check is:
nsIChannel.LOAD_INITIAL_DOCUMENT_URI and since nsIHttpChannel inherits
that field from nsIChannel i'm inspecting it at onModifyRequest. The
problem is that this field is set all the time to 524228 decimal (1 <<
19 binary as found in idl), regardles if current URI is triggered by
user action or HTML content. So... either i'm doing something wrong,
or there is a bug in nsIChannel.

In addition: is there a possibility to figure out which window/tab
triggered the request? If yes which IDL's are a must-read.

regards,
Jacek Prucia

Reply via email to