Bug 1214277 - Avoid bypassing opening a cache entry for possibly intercepted channels; r=mcmanus

This commit is contained in:
Ehsan Akhgari 2015-10-13 18:36:11 -04:00
parent d720715921
commit 590f4e13ba

View File

@ -2958,7 +2958,7 @@ nsHttpChannel::OpenCacheEntry(bool isHttps)
uint32_t cacheEntryOpenFlags;
bool offline = gIOService->IsOffline() || appOffline;
if (offline || (mLoadFlags & INHIBIT_CACHING)) {
if (BYPASS_LOCAL_CACHE(mLoadFlags) && !offline) {
if (BYPASS_LOCAL_CACHE(mLoadFlags) && !offline && !PossiblyIntercepted()) {
goto bypassCacheEntryOpen;
}
cacheEntryOpenFlags = nsICacheStorage::OPEN_READONLY;