[Project_owners] Use of nsIURIContentListener

Matthew Wilson matthew at mjwilson.demon.co.uk
Wed Dec 31 14:59:33 EST 2003


Matthew Wilson wrote:
> HJ wrote:
> 
>> Matthew Wilson <matthew at mjwilson.demon.co.uk> wrote:
>>
>>> Hi,
>>>  Has anyone used nsIURIContentListener successfully in their projects?
>>>
>>>  It should allow you to listen for content of a specified MIME type 
>>> and deal with it in an extensions. I'm having trouble getting it to 
>>> work as I expect though.
>>> Matthew
>>
>>
>>
>> Hi,
>>
>> What exactly are you trying to do?
>>
>> I guess you've seen the .idl file already:
>> http://lxr.mozilla.org/seamonkey/source/uriloader/base/nsIURIContentListener.idl 
>>
>> but was wondering if you looked at this file:
>> http://lxr.mozilla.org/seamonkey/source/xpfe/browser/resources/content/nsBrowserContentListener.js#149 
>>
>> because that might be an important source for your project.
> 
> 
> I'm trying to intercept WML content and display it in the browser.
> 
> This is already done in my wmlbrowser project, but it's done in an evil 
> way, and I'd like to improve it.

OK, I've got the infrastructure of this basically working by starting 
from scratch from nsBrowserContentListener. I guess I just broke 
something last time I tried.

Matthew




More information about the Project_owners mailing list