зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1378714 - [RCWN] Make sure we ReadFromCache even when OnCacheEntryAvailable is called before AsyncOpenURI is called. r=michal
MozReview-Commit-ID: KHUmZp8RuT8
This commit is contained in:
Родитель
038afacb9f
Коммит
cde7f99f55
|
@ -485,6 +485,14 @@ nsHttpChannel::Connect()
|
|||
// otherwise, let's just proceed without using the cache.
|
||||
}
|
||||
|
||||
// When racing, if OnCacheEntryAvailable is called before AsyncOpenURI
|
||||
// returns, then we may not have started reading from the cache.
|
||||
// If the content is valid, we should attempt to do so, as technically the
|
||||
// cache has won the race.
|
||||
if (sRCWNEnabled && mCachedContentIsValid && mNetworkTriggered) {
|
||||
Unused << ReadFromCache(true);
|
||||
}
|
||||
|
||||
return TriggerNetwork(0);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче