nsresult rv = NS_OK;   if (nsnull != m_NextStream) { rv = m_NextStream->OnStatus(aURL, aMsg); }   m_DocLoader->FireOnStatusURLLoad(aURL, nsAutoString(aMsg));   if (nsnull != m_Observer) {  (void) m_Observer->OnStatus(aURL, aMsg); }  return rv;
if (aStatus) { nsresult rv; nsCOMPtr<nsIStringBundleService> sbs = do_GetService(kStringBundleServiceCID, &rv); if (NS_FAILED(rv)) return rv; nsXPIDLString msg; rv = sbs->FormatStatusMessage(aStatus, aStatusArg, getter_Copies(msg)); if (NS_FAILED(rv)) return rv; FireOnStatusChange(this, aChannel, aStatus, msg); } return NS_OK;
NS_METHOD nsDocumentBindInfo::OnStatus(nsIURL* aURL, const PRUnichar* aMsg){    nsresult rv = NS_OK;    /* Pass the notification out to the next stream listener... */    if (nsnull != m_NextStream) {        rv = m_NextStream->OnStatus(aURL, aMsg);    }    /* Pass the notification out to any observers... */    m_DocLoader->FireOnStatusURLLoad(aURL, nsAutoString(aMsg));    /* Pass the notification out to the Observer... */    if (nsnull != m_Observer) {        /* XXX: Should we ignore the return value? */        (void) m_Observer->OnStatus(aURL, aMsg);    }    return rv;}