On Thu, 01 Jan 2004 15:21:29 -0500, Boris Zbarsky <[EMAIL PROTECTED]>
wrote:

>Matthew Wilson wrote:
>
>> I have (brief excerpt):
>>     doContent: function(contentType, isContentPreferred, request,
>> contentHandler)
>>     {
>>         this.logger.logStringMessage("wmlBrowserContentListener
>> doContent " + contentType);
>>         // Ignore content types which we don't care about
>>         if (contentType != "text/vnd.wap.wml") {
>>             return false;
>>         }
>>         contentHandler.value = new wmlContentHandler ();
>>         return true;
>>     },
>
>"return true"?  The idl says that a return value of "true" means you 
>will handle the load on your own from this point; that the URILoader 
>should cancel the necko channel and not bother you about this load 
>again.  Is there some way to clarify the comment in the IDL to make this 
>clear, in your opinion?

Thanks for spotting that.

I had read that in the IDL, and I think I started off with "return
false", but it did not seem to work so I experimented with "return
true". Obviously I had something else wrong when I originally tried
"return false".

Switching to "return false" means that onStartRequest,
onDataAvailable, onStopRequest get called as desired.

I think that the IDL comment is clear enough, I just ended up
overlooking it.

Thanks again,

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

Reply via email to