diff --git a/mozilla/netwerk/protocol/http/src/nsHttpChannel.cpp b/mozilla/netwerk/protocol/http/src/nsHttpChannel.cpp index 9be498bd8a4..b3ac85bc353 100644 --- a/mozilla/netwerk/protocol/http/src/nsHttpChannel.cpp +++ b/mozilla/netwerk/protocol/http/src/nsHttpChannel.cpp @@ -167,7 +167,10 @@ nsHttpChannel::Init(nsIURI *uri, if (NS_FAILED(rv)) return rv; // Notify nsIHttpNotify implementations - return nsHttpHandler::get()->OnModifyRequest(this); + rv = nsHttpHandler::get()->OnModifyRequest(this); + NS_ASSERTION(NS_SUCCEEDED(rv), "OnModifyRequest failed"); + + return NS_OK; } //----------------------------------------------------------------------------- @@ -408,7 +411,8 @@ nsHttpChannel::ProcessNormal() } // notify nsIHttpNotify implementations - nsHttpHandler::get()->OnExamineResponse(this); + rv = nsHttpHandler::get()->OnExamineResponse(this); + NS_ASSERTION(NS_SUCCEEDED(rv), "OnExamineResponse failed"); return mListener->OnStartRequest(this, mListenerContext); }