mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1144214 - Fix DeleteOrphanedBodyAction so that it doesn't orphan cache files if the action is canceled; r=bkelly
This commit is contained in:
parent
b5dc0fc96f
commit
58dbbe9814
7
dom/cache/Manager.cpp
vendored
7
dom/cache/Manager.cpp
vendored
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user