зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1358964: Always delete content process temp dir even when there is no profile. r=bsmedberg
This commit is contained in:
Родитель
735da7afe5
Коммит
affb1dc1e0
|
@ -1092,12 +1092,6 @@ nsXREDirProvider::DoShutdown()
|
|||
PROFILER_LABEL_FUNC(js::ProfileEntry::Category::OTHER);
|
||||
|
||||
if (mProfileNotified) {
|
||||
#if (defined(XP_WIN) || defined(XP_MACOSX)) && defined(MOZ_CONTENT_SANDBOX)
|
||||
if (XRE_IsParentProcess()) {
|
||||
Unused << DeleteDirIfExists(mContentProcessSandboxTempDir);
|
||||
}
|
||||
#endif
|
||||
|
||||
nsCOMPtr<nsIObserverService> obsSvc =
|
||||
mozilla::services::GetObserverService();
|
||||
NS_ASSERTION(obsSvc, "No observer service?");
|
||||
|
@ -1120,6 +1114,12 @@ nsXREDirProvider::DoShutdown()
|
|||
}
|
||||
mProfileNotified = false;
|
||||
}
|
||||
|
||||
#if (defined(XP_WIN) || defined(XP_MACOSX)) && defined(MOZ_CONTENT_SANDBOX)
|
||||
if (XRE_IsParentProcess()) {
|
||||
Unused << DeleteDirIfExists(mContentProcessSandboxTempDir);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef XP_WIN
|
||||
|
|
Загрузка…
Ссылка в новой задаче