Hi.

I'm developing a Mozilla extension. I'm using XUL and XPCOM
interfaces for that.

I'm intercepting HTTP requests using nsIObserver service. When I observe
"http-on-modify-request", I start analysing the HTTP request going
to be sent.

- The first problem:
I need to get the HTML content of a requested document, *after* the
time it is received (for instance, when "http-on-examine-response"
topic is observed) and *before* the time its objects are requested.
The reason is that I need to analyse the structure of a document and
decide what to do with its objects being requested.

- The second problem:
I need to figure out which window/tab has triggered the intercepted
HTTP request. The reason is that I need to associate a document (html
content) with its objects (img, js, css, etc).

- The third problem:
I need to block a HTTP request if our application infers its
necessary. Note that I need to *block* a HTTP request (it must not be
sent to the server), not only cancel it (nsIHTTPChannel.cancel() isn't
useful to me).

Does anyone know a solution for at least one of these problems?

Thanks!

-- 
Fabiano M. Atalla da Fonseca
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to