Bug 1111875 - Remove assertion on http size input error. r=keeler, a=sledru
authorPatrick McManus <mcmanus@ducksong.com>
Tue, 16 Dec 2014 21:35:57 -0500
changeset 234463 a8f7033e1897eab1c7b30bfe598b6fc498f89978
parent 234462 8fdaee9488741a2436a46d57712be7a59b001656
child 234464 d98e26a6fb8360f239d87e6a06550e1b70192ec3
push id7394
push userryanvm@gmail.com
push dateMon, 22 Dec 2014 16:44:51 +0000
treeherdermozilla-aurora@de3849c3d5ee [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskeeler, sledru
bugs1111875
milestone36.0a2
Bug 1111875 - Remove assertion on http size input error. r=keeler, a=sledru
netwerk/protocol/http/nsHttpChannel.cpp
--- a/netwerk/protocol/http/nsHttpChannel.cpp
+++ b/netwerk/protocol/http/nsHttpChannel.cpp
@@ -5784,17 +5784,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);
             }
         }