summaryrefslogtreecommitdiffstats
path: root/toolkit/xre/nsXREDirProvider.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/xre/nsXREDirProvider.cpp')
-rw-r--r--toolkit/xre/nsXREDirProvider.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/toolkit/xre/nsXREDirProvider.cpp b/toolkit/xre/nsXREDirProvider.cpp
index 2fbd324b7..09168319f 100644
--- a/toolkit/xre/nsXREDirProvider.cpp
+++ b/toolkit/xre/nsXREDirProvider.cpp
@@ -48,7 +48,6 @@
#ifdef XP_WIN
#include <windows.h>
#include <shlobj.h>
-#include "mozilla/WindowsVersion.h"
#endif
#ifdef XP_MACOSX
#include "nsILocalFileMac.h"
@@ -762,15 +761,12 @@ nsXREDirProvider::LoadContentProcessTempDir()
static bool
IsContentSandboxDisabled()
{
+ bool isSandboxDisabled = false;
if (!BrowserTabsRemoteAutostart()) {
return false;
}
-#if defined(XP_WIN)
- const bool isSandboxDisabled = !mozilla::IsVistaOrLater() ||
- (Preferences::GetInt("security.sandbox.content.level") < 1);
-#elif defined(XP_MACOSX)
- const bool isSandboxDisabled =
- Preferences::GetInt("security.sandbox.content.level") < 1;
+#if defined(XP_WIN) || defined(XP_MACOSX)
+ isSandboxDisabled = Preferences::GetInt("security.sandbox.content.level") < 1;
#endif
return isSandboxDisabled;
}