зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1144214 - Fix DeleteOrphanedBodyAction so that it doesn't orphan cache files if the action is canceled; r=bkelly
This commit is contained in:
Родитель
09f736c2cc
Коммит
b48d53e850
|
@ -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));
|
||||
|
|
Загрузка…
Ссылка в новой задаче