Chris Waterson wrote:

> I'm looking into a bug (5569) that appears to be caused by the
> assumption that a load observer that receives an OnStartRequest() will
> always receive a matching OnStopRequest(). Is this assumption valid?

Yes... actually, it is a requirement that an OnStartRequest be paired 
with a corresponding OnStopRequest.  For example, if 
nsIChannel::AsyncOpen succeeds, then there _will be_ an OnStartRequest 
followed by zero or more OnDataAvailable's with a fiinal OnStopRequest.  
By the way, it is completely possible that OnStopRequest will be 
followed by another sequence of 
OnStartRequest/OnDataAvailable/OnStopRequest.  This happens in the case 
of HTTP authentication, HTTP redirection, and multipart-mixed-replace 
(to name some of the more common examples).

Darin

> 
> thanks,
> chris
> 

Reply via email to