Raj Saini wrote:
For the second part that is diabling some of UI
operations, what I want is open a new window when the
contents types are text/x-html-encrypted arrives. my
converter should decrypt the contents and pump them to
the new browser window for rendering.

The problem is that there is really no good way exposed to pump data into a different window...


To achieve the above, I have implemented a
nsIWebProgressListener interface and try to intercept
the content-type in in the
nsIWebProgressListener::OnStrateChange(...) method.

That won't work, as you noticed, since stream converters are employed before any progress listeners get to hear about the load.


Now, I am trying to figure out how can I get the
original content  types from the channel or how can I
set some flag which can indicate the original content
type to nsIWebProgressListener:OnStateChange(...)
method.

At the moment, you cannot. This is a general issue that we have been thinking about...


Another thing I am exploring is how to open a new
browser window in C++ code. In JS I can simple use the
window.openDialog(...) to open a new window.

See nsIWindowWatcher.


-Boris
_______________________________________________
Mozilla-netlib mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-netlib

Reply via email to