Commit a78130ad authored by Michal Novotny's avatar Michal Novotny
Browse files

Bug 1384478 - browser/base/content/test/general/browser_save_video.js fails...

Bug 1384478 - browser/base/content/test/general/browser_save_video.js fails when we enable rcwn, r=honzab
parent 51d5af29
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1724,9 +1724,13 @@ nsHttpChannel::CallOnStartRequest()
        // We must keep the cache entry in case of partial request.
        // Concurrent access is the same, we need the entry in
        // OnStopRequest.
        if (!mCachedContentIsPartial && !mConcurrentCacheAccess)
        // We also need the cache entry when racing cache with network to find
        // out what is the source of the data.
        if (!mCachedContentIsPartial && !mConcurrentCacheAccess &&
            !(mRaceCacheWithNetwork && mFirstResponseSource == RESPONSE_FROM_CACHE)) {
            CloseCacheEntry(false);
        }
    }

    if (!mCanceled) {
        // create offline cache entry if offline caching was requested