Bug 1144214 - Fix DeleteOrphanedBodyAction so that it doesn't orphan cache files if the action is canceled; r=bkelly

This commit is contained in:
Ehsan Akhgari 2015-03-17 13:11:02 -04:00
Родитель 09f736c2cc
Коммит b48d53e850
1 изменённых файлов: 2 добавлений и 5 удалений

7
dom/cache/Manager.cpp поставляемый
Просмотреть файл

@ -97,11 +97,8 @@ public:
MOZ_ASSERT(aResolver);
MOZ_ASSERT(aQuotaInfo.mDir);
if (IsCanceled()) {
// TODO: handle orphaned files (bug 1110446)
aResolver->Resolve(NS_ERROR_ABORT);
return;
}
// Note that since DeleteOrphanedBodyAction isn't used while the context is
// being initialized, we don't need to check for cancellation here.
nsCOMPtr<nsIFile> dbDir;
nsresult rv = aQuotaInfo.mDir->Clone(getter_AddRefs(dbDir));