Bug 1289164 - Make about:cache not modify cache entry state on display. r=michal

--HG--
extra : rebase_source : b64fbced196064b78e8f6e1be6e566fe5233c8ab
This commit is contained in:
Honza Bambas 2016-08-09 11:23:00 -04:00
Родитель fe911e63d8
Коммит 425509d685
2 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -464,7 +464,7 @@ private:
if (NS_FAILED(rv))
break; // done (or error?)
// This synchronously invokes onCacheEntryInfo on this class where we
// This synchronously invokes OnEntryInfo on this class where we
// redispatch to the main thread for the consumer callback.
CacheFileIOManager::GetEntryInfo(&hash, this);
}

Просмотреть файл

@ -208,7 +208,9 @@ nsAboutCacheEntry::Channel::OpenCacheEntry()
// Invokes OnCacheEntryAvailable()
rv = storage->AsyncOpenURI(mCacheURI, mEnhanceId,
nsICacheStorage::OPEN_READONLY, this);
nsICacheStorage::OPEN_READONLY |
nsICacheStorage::OPEN_SECRETLY,
this);
if (NS_FAILED(rv)) return rv;
return NS_OK;