Bug 764758 - Intermittent crash during test_xhtmlManifest.xhtml [@ nsOfflineCacheUpdateItem::OnDataAvailable], part1, r=jduell

This commit is contained in:
Honza Bambas 2012-10-22 19:59:07 +02:00
Родитель 2afde93b5a
Коммит 49bae0f097
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -1714,6 +1714,11 @@ nsOfflineCacheUpdate::ProcessNextURI()
NS_ASSERTION(mState == STATE_DOWNLOADING,
"ProcessNextURI should only be called from the DOWNLOADING state");
if (mState != STATE_DOWNLOADING) {
LOG((" should only be called from the DOWNLOADING state, ignoring"));
return NS_ERROR_UNEXPECTED;
}
nsOfflineCacheUpdateItem * runItem = nullptr;
uint32_t completedItems = 0;
for (uint32_t i = 0; i < mItems.Length(); ++i) {