summaryrefslogtreecommitdiffstats
path: root/toolkit/xre/nsAppRunner.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-02-19 12:15:47 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-02-19 12:15:47 +0100
commit2b01522cf3cda6343fab8a6e3482636d0fb6c4bd (patch)
treeb1117df6517012bf0b98fda6c80295f1405584e9 /toolkit/xre/nsAppRunner.cpp
parente52c019ec8377859b6df5e50ca40a40ea20702b9 (diff)
downloadUXP-2b01522cf3cda6343fab8a6e3482636d0fb6c4bd.tar
UXP-2b01522cf3cda6343fab8a6e3482636d0fb6c4bd.tar.gz
UXP-2b01522cf3cda6343fab8a6e3482636d0fb6c4bd.tar.lz
UXP-2b01522cf3cda6343fab8a6e3482636d0fb6c4bd.tar.xz
UXP-2b01522cf3cda6343fab8a6e3482636d0fb6c4bd.zip
Remove redundant Vista checks in toolkit/xre
Diffstat (limited to 'toolkit/xre/nsAppRunner.cpp')
-rw-r--r--toolkit/xre/nsAppRunner.cpp21
1 files changed, 2 insertions, 19 deletions
diff --git a/toolkit/xre/nsAppRunner.cpp b/toolkit/xre/nsAppRunner.cpp
index 4979e1652..4a1d3046f 100644
--- a/toolkit/xre/nsAppRunner.cpp
+++ b/toolkit/xre/nsAppRunner.cpp
@@ -98,7 +98,6 @@
#include <intrin.h>
#include <math.h>
#include "cairo/cairo-features.h"
-#include "mozilla/WindowsVersion.h"
#include "mozilla/mscom/MainThreadRuntime.h"
#include "mozilla/widget/AudioSession.h"
@@ -3106,10 +3105,7 @@ XREMain::XRE_mainInit(bool* aExitFlag)
// manual font file I/O on _all_ system fonts. To avoid this, load the
// dwrite library and create a factory as early as possible so that the
// FntCache service is ready by the time it's needed.
-
- if (IsVistaOrLater()) {
- CreateThread(nullptr, 0, &InitDwriteBG, nullptr, 0, nullptr);
- }
+ CreateThread(nullptr, 0, &InitDwriteBG, nullptr, 0, nullptr);
}
#endif
@@ -4835,7 +4831,7 @@ enum {
kE10sDisabledForAddons = 7,
kE10sForceDisabled = 8,
// kE10sDisabledForXPAcceleration = 9, removed in bug 1296353
- kE10sDisabledForOperatingSystem = 10,
+ // kE10sDisabledForOperatingSystem = 10, removed due to xp-eol
};
const char* kAccessibilityLastRunDatePref = "accessibility.lastLoadDate";
@@ -4912,19 +4908,6 @@ MultiprocessBlockPolicy() {
}
#endif
- /**
- * Avoids enabling e10s for Windows XP users on the release channel.
- */
-#if defined(XP_WIN)
- if (!IsVistaOrLater()) {
- nsAdoptingCString channelName = Preferences::GetDefaultCString("app.update.channel");
- if (channelName.EqualsLiteral("release") || channelName.EqualsLiteral("esr")) {
- gMultiprocessBlockPolicy = kE10sDisabledForOperatingSystem;
- return gMultiprocessBlockPolicy;
- }
- }
-#endif // XP_WIN
-
/*
* None of the blocking policies matched, so e10s is allowed to run.
* Cache the information and return 0, indicating success.