зеркало из https://github.com/mozilla/gecko-dev.git
Bug 448712. Make sure to remove the storage for an empty entry in a cache block file. r+sr=biesi
This commit is contained in:
Родитель
8bbc56fcbc
Коммит
49dd4edce3
|
@ -873,6 +873,11 @@ nsDiskCacheStreamIO::SetEOF()
|
|||
rv = ReadCacheBlocks();
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
}
|
||||
|
||||
// We need to make sure we reflect this change in Flush().
|
||||
// In particular, if mStreamPos is 0 and we never write to
|
||||
// the buffer, we want the storage to be deleted.
|
||||
mBufDirty = PR_TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче