Bug 1519126 - Intermittent GECKO(1168) | Assertion failure: !chunk->IsReady() r=mayhemer

Differential Revision: https://phabricator.services.mozilla.com/D58533

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Michal Novotny 2020-01-08 14:09:33 +00:00
Родитель 0c05013f04
Коммит 40a21eea5b
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -2300,7 +2300,11 @@ void CacheFile::NotifyListenersAboutOutputRemoval() {
RefPtr<CacheFileChunk> chunk;
mChunks.Get(idx, getter_AddRefs(chunk));
if (chunk) {
MOZ_ASSERT(!chunk->IsReady());
// Skip these listeners because the chunk is being read. We don't have
// assertion here to check its state because it might be already in READY
// state while CacheFile::OnChunkRead() is waiting on Cache I/O thread for
// a lock so the listeners hasn't been notified yet. In any case, the
// listeners will be notified from CacheFile::OnChunkRead().
continue;
}