From c318373c9a34498f29d338baf9eaabd20bd16510 Mon Sep 17 00:00:00 2001 From: Andrea Marchesini Date: Tue, 30 Aug 2016 15:49:36 -0700 Subject: [PATCH] Bug 1298738 - Remove onprogress assertions in HttpChannelChild, r=jduell --- netwerk/protocol/http/HttpChannelChild.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/netwerk/protocol/http/HttpChannelChild.cpp b/netwerk/protocol/http/HttpChannelChild.cpp index c927ad821cae..e57ec3237a61 100644 --- a/netwerk/protocol/http/HttpChannelChild.cpp +++ b/netwerk/protocol/http/HttpChannelChild.cpp @@ -770,8 +770,6 @@ HttpChannelChild::DoOnProgress(nsIRequest* aRequest, int64_t progress, int64_t p // OnProgress // if (progress > 0) { - MOZ_ASSERT((progressMax == -1) || (progress <= progressMax), - "unexpected progress values"); mProgressSink->OnProgress(aRequest, nullptr, progress, progressMax); } } @@ -1016,8 +1014,6 @@ HttpChannelChild::OnProgress(const int64_t& progress, if (mProgressSink && NS_SUCCEEDED(mStatus) && mIsPending) { if (progress > 0) { - MOZ_ASSERT((progressMax == -1) || (progress <= progressMax), - "unexpected progress values"); mProgressSink->OnProgress(this, nullptr, progress, progressMax); } }