Bug 1182487 - Don't try to write to HTTP cache entry in nsHttpChannel when entry is open for reading only. r=michal

This commit is contained in:
Honza Bambas 2015-07-15 13:30:00 +02:00
parent 758c1a3bc3
commit d11786e1bf

View File

@ -1728,7 +1728,7 @@ nsHttpChannel::ContinueProcessNormal(nsresult rv)
if (NS_FAILED(rv)) return rv;
// install cache listener if we still have a cache entry open
if (mCacheEntry && !mLoadedFromApplicationCache) {
if (mCacheEntry && !mCacheEntryIsReadOnly) {
rv = InstallCacheListener();
if (NS_FAILED(rv)) return rv;
}