Boris Zbarsky <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Matthew Wilson wrote: > > And then the converter creates a new nsIChannel with the correct > > content type, and passes that to the listener which the converter > > recieved during AsyncConvertData - is that right? > > Well, it doesn't necessarily create a new channel. It may > SetContentType on the old channel instead. But yes, it passes the > converted data to the listener it got during AsyncConvertData. > > The key here is that it needs to pass an nsIInputStream with the > converted data to the listener. > > > If so then I must be doing something wrong, I suppose. All my methods > > are being called but I'm not seeing anything coming out. > > You're just implementing the converter, right? > > And you're calling OnStartRequest/OnDataAvailable/OnStopRequest on your > listener? And passing it the converted data?
Yes (although I'm just passing dummy data at the moment, just to see whether it works. I also tried passing the original data straight through to see if that worked, but it didn't). What I see when trying to load a document is that the favicon on my current tab gets displayed for the page I'm trying to load, but nothing in the content area. My code is here http://www.mozdev.org/source/browse/wmlbrowser/src/components/wml-service.js?rev=1.6&content-type=text/x-cvsweb-markup if anyone has time to try and see what I'm doing wrong. -- Matthew _______________________________________________ Mozilla-netlib mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-netlib
