Backed out changeset 31662149dab4 (bug 1167083) for T(x) failures on a CLOSED TREE

This commit is contained in:
Bob Owen 2015-05-22 12:51:18 +01:00
Родитель b54dc47f24
Коммит 10b3a493b7
1 изменённых файлов: 18 добавлений и 26 удалений

Просмотреть файл

@ -676,10 +676,26 @@ SetUpSandboxEnvironment()
}
}
#if defined(NIGHTLY_BUILD)
static void
CleanUpOldSandboxEnvironment()
CleanUpSandboxEnvironment()
{
// We can't have created a low integrity temp before Vista.
if (!IsVistaOrLater()) {
return;
}
// Get temp directory suffix pref.
nsAdoptingString tempDirSuffix =
Preferences::GetString("security.sandbox.content.tempDirSuffix");
if (tempDirSuffix.IsEmpty()) {
return;
}
// Get and remove the low integrity Mozilla temp directory.
// This function already warns if the deletion fails.
unused << GetAndCleanLowIntegrityTemp(tempDirSuffix);
#if defined(NIGHTLY_BUILD)
// Temporary code to clean up the old low integrity temp directories.
// The removal of this is tracked by bug 1165818.
nsCOMPtr<nsIFile> lowIntegrityMozilla;
@ -718,31 +734,7 @@ CleanUpOldSandboxEnvironment()
file->Remove(/* aRecursive */ true);
}
}
}
#endif
static void
CleanUpSandboxEnvironment()
{
// We can't have created a low integrity temp before Vista.
if (!IsVistaOrLater()) {
return;
}
#if defined(NIGHTLY_BUILD)
CleanUpOldSandboxEnvironment();
#endif
// Get temp directory suffix pref.
nsAdoptingString tempDirSuffix =
Preferences::GetString("security.sandbox.content.tempDirSuffix");
if (tempDirSuffix.IsEmpty()) {
return;
}
// Get and remove the low integrity Mozilla temp directory.
// This function already warns if the deletion fails.
nsCOMPtr<nsIFile> lowIntegrityTemp = GetAndCleanLowIntegrityTemp(tempDirSuffix);
}
#endif