mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-09 21:33:43 +00:00
Bug 979422 - HTTP old cache wrapper performs UMR if onCacheEntryCheck fails, r=michal
This commit is contained in:
parent
cf96244f17
commit
6806499fb7
@ -696,7 +696,7 @@ _OldCacheLoad::Check()
|
|||||||
NS_WARNING("cache check failed");
|
NS_WARNING("cache check failed");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result == nsICacheEntryOpenCallback::ENTRY_NOT_WANTED) {
|
if (NS_FAILED(rv) || result == nsICacheEntryOpenCallback::ENTRY_NOT_WANTED) {
|
||||||
mCacheEntry->Close();
|
mCacheEntry->Close();
|
||||||
mCacheEntry = nullptr;
|
mCacheEntry = nullptr;
|
||||||
mStatus = NS_ERROR_CACHE_KEY_NOT_FOUND;
|
mStatus = NS_ERROR_CACHE_KEY_NOT_FOUND;
|
||||||
|
Loading…
Reference in New Issue
Block a user