summaryrefslogtreecommitdiffstats
path: root/dom
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-02-19 12:22:05 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-02-19 12:22:05 +0100
commit039f3e49c7ba28dcf00cffb76e7af62fe52b1026 (patch)
tree01f5a864b6164fd8b33cdfe3cf13cc3121389bf4 /dom
parent2b01522cf3cda6343fab8a6e3482636d0fb6c4bd (diff)
downloadUXP-039f3e49c7ba28dcf00cffb76e7af62fe52b1026.tar
UXP-039f3e49c7ba28dcf00cffb76e7af62fe52b1026.tar.gz
UXP-039f3e49c7ba28dcf00cffb76e7af62fe52b1026.tar.lz
UXP-039f3e49c7ba28dcf00cffb76e7af62fe52b1026.tar.xz
UXP-039f3e49c7ba28dcf00cffb76e7af62fe52b1026.zip
Remove redundant Vista checks in dom/ipc
Diffstat (limited to 'dom')
-rw-r--r--dom/ipc/ContentProcess.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/dom/ipc/ContentProcess.cpp b/dom/ipc/ContentProcess.cpp
index 66125f332..2413d8808 100644
--- a/dom/ipc/ContentProcess.cpp
+++ b/dom/ipc/ContentProcess.cpp
@@ -8,10 +8,6 @@
#include "ContentProcess.h"
-#if defined(XP_WIN) && defined(MOZ_CONTENT_SANDBOX)
-#include "mozilla/WindowsVersion.h"
-#endif
-
#if defined(XP_MACOSX) && defined(MOZ_CONTENT_SANDBOX)
#include <stdlib.h>
#endif
@@ -33,9 +29,8 @@ static bool
IsSandboxTempDirRequired()
{
// On Windows, a sandbox-writable temp directory is only used
- // for Vista or later with sandbox pref level >= 1.
- return (IsVistaOrLater() &&
- (Preferences::GetInt("security.sandbox.content.level") >= 1));
+ // when sandbox pref level >= 1.
+ return Preferences::GetInt("security.sandbox.content.level") >= 1;
}
static void