зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1570179: Clear cached directories after sending shutdown notifications. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D39983 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
d7765e1c1c
Коммит
743d201a25
|
@ -1073,9 +1073,6 @@ nsXREDirProvider::DoStartup() {
|
|||
void nsXREDirProvider::DoShutdown() {
|
||||
AUTO_PROFILER_LABEL("nsXREDirProvider::DoShutdown", OTHER);
|
||||
|
||||
gDataDirProfileLocal = nullptr;
|
||||
gDataDirProfile = nullptr;
|
||||
|
||||
if (mProfileNotified) {
|
||||
nsCOMPtr<nsIObserverService> obsSvc =
|
||||
mozilla::services::GetObserverService();
|
||||
|
@ -1104,6 +1101,9 @@ void nsXREDirProvider::DoShutdown() {
|
|||
mProfileNotified = false;
|
||||
}
|
||||
|
||||
gDataDirProfileLocal = nullptr;
|
||||
gDataDirProfile = nullptr;
|
||||
|
||||
if (XRE_IsParentProcess()) {
|
||||
#if defined(MOZ_SANDBOX)
|
||||
mozilla::Unused << DeleteDirIfExists(mContentProcessSandboxTempDir);
|
||||
|
|
Загрузка…
Ссылка в новой задаче