bug 1111875 - remove assertion on http size input error r=keeler
authorPatrick McManus <mcmanus@ducksong.com>
Tue, 16 Dec 2014 21:35:57 -0500
changeset 220329 8b71a52d7730a894949a2f7d371483cc7cb90bed
parent 220328 78d01e271d8a2e05b4ed2daaec4ea8047d7685df
child 220330 9bb8b0b4daae5f534c5d809a5a502375571474ae
child 220387 119ce28762a9000109b4c0b96bb2e771a757232d
push id27983
push usercbook@mozilla.com
push dateThu, 18 Dec 2014 12:51:14 +0000
treeherdermozilla-central@9bb8b0b4daae [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskeeler
bugs1111875
milestone37.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 1111875 - remove assertion on http size input error r=keeler
netwerk/protocol/http/nsHttpChannel.cpp
--- a/netwerk/protocol/http/nsHttpChannel.cpp
+++ b/netwerk/protocol/http/nsHttpChannel.cpp
@@ -5756,17 +5756,20 @@ nsHttpChannel::OnTransportStatus(nsITran
         if (!(mLoadFlags & LOAD_BACKGROUND)) {
             nsAutoCString host;
             mURI->GetHost(host);
             mProgressSink->OnStatus(this, nullptr, status,
                                     NS_ConvertUTF8toUTF16(host).get());
         }
 
         if (progress > 0) {
-            MOZ_ASSERT(progress <= progressMax, "unexpected progress values");
+            if (progress > progressMax) {
+                NS_WARNING("unexpected progress values");
+            }
+
             // Try to get mProgressSink if it was nulled out during OnStatus.
             if (!mProgressSink) {
                 GetCallback(mProgressSink);
             }
             if (mProgressSink) {
                 mProgressSink->OnProgress(this, nullptr, progress, progressMax);
             }
         }