[mq]: disable-assert.patch draft
authorValentin Gosu <valentin.gosu@gmail.com>
Fri, 20 May 2016 02:56:17 +0200
changeset 368990 7965752d2b214e0bc60abd052ec4eb53b0131d05
parent 368989 77322f9e33722dc5d1508468f1730644cea4d7d7
child 368991 ad706c54a6a1f165f7b9225f802cfa4e31822eff
push id18689
push uservalentin.gosu@gmail.com
push dateFri, 20 May 2016 00:56:51 +0000
milestone49.0a1
[mq]: disable-assert.patch MozReview-Commit-ID: BHauoC1YxD5
netwerk/protocol/http/HttpChannelChild.cpp
netwerk/protocol/http/nsHttpChannel.cpp
--- a/netwerk/protocol/http/HttpChannelChild.cpp
+++ b/netwerk/protocol/http/HttpChannelChild.cpp
@@ -436,17 +436,17 @@ HttpChannelChild::OnStartRequest(const n
   mCacheEntryAvailable = cacheEntryAvailable;
   mCacheExpirationTime = cacheExpirationTime;
   mCachedCharset = cachedCharset;
   mSelfAddr = selfAddr;
   mPeerAddr = peerAddr;
 
   mAvailableCachedAltDataType = altDataType;
 
-  MOZ_ASSERT(!mAfterOnStartRequestBegun, "OnStartRequest should be called only once");
+  // MOZ_ASSERT(!mAfterOnStartRequestBegun, "OnStartRequest should be called only once");
   mAfterOnStartRequestBegun = true;
 
   AutoEventEnqueuer ensureSerialDispatch(mEventQ);
 
   nsresult rv;
   nsCOMPtr<nsISupportsPRUint32> container =
     do_CreateInstance(NS_SUPPORTS_PRUINT32_CONTRACTID, &rv);
   if (NS_FAILED(rv)) {
--- a/netwerk/protocol/http/nsHttpChannel.cpp
+++ b/netwerk/protocol/http/nsHttpChannel.cpp
@@ -5953,17 +5953,17 @@ nsHttpChannel::OnStartRequest(nsIRequest
         this, request, mStatus));
 
     // Make sure things are what we expect them to be...
     MOZ_ASSERT(request == mCachePump || request == mTransactionPump,
                "Unexpected request");
     MOZ_ASSERT(!(mTransactionPump && mCachePump) || mCachedContentIsPartial,
                "If we have both pumps, the cache content must be partial");
 
-    MOZ_ASSERT(!mAfterOnStartRequestBegun, "OnStartRequest should be called only once");
+    // MOZ_ASSERT(!mAfterOnStartRequestBegun, "OnStartRequest should be called only once");
     mAfterOnStartRequestBegun = true;
 
     if (!mSecurityInfo && !mCachePump && mTransaction) {
         // grab the security info from the connection object; the transaction
         // is guaranteed to own a reference to the connection.
         mSecurityInfo = mTransaction->SecurityInfo();
     }