Bug 998608 - Intermittent netwerk/test/unit/test_range_requests.js | request reports itself as not pending from onDataAvailable, r=michal

This commit is contained in:
Honza Bambas 2014-05-17 15:38:50 +02:00
parent 9ed36bd7fe
commit 27fcff31b8

View File

@ -2181,6 +2181,7 @@ nsHttpChannel::ProcessPartialContent()
if (NS_FAILED(rv)) return rv;
mCachedContentIsPartial = false;
mConcurentCacheAccess = 0;
// notify observers interested in looking at a response that has been
// merged with any cached headers (http-on-examine-merged-response).
@ -5141,8 +5142,6 @@ nsHttpChannel::OnStopRequest(nsIRequest *request, nsISupports *ctxt, nsresult st
}
}
mIsPending = false;
// if needed, check cache entry has all data we expect
if (mCacheEntry && mCachePump &&
mConcurentCacheAccess && contentComplete) {
@ -5182,6 +5181,7 @@ nsHttpChannel::OnStopRequest(nsIRequest *request, nsISupports *ctxt, nsresult st
}
}
mIsPending = false;
mStatus = status;
// perform any final cache operations before we close the cache entry.