From 45d67964d6b0f00265b70ea24130e596fcdae0c3 Mon Sep 17 00:00:00 2001 From: Dragana Damjanovic Date: Wed, 20 Dec 2017 16:45:30 +0100 Subject: [PATCH] Bug 1422895 - TFO should be possible only on Windows 10 Fall Creators Update or later. r=mcmanus --- netwerk/protocol/http/nsHttpHandler.cpp | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/netwerk/protocol/http/nsHttpHandler.cpp b/netwerk/protocol/http/nsHttpHandler.cpp index 7e40068cc3bd..a079088be296 100644 --- a/netwerk/protocol/http/nsHttpHandler.cpp +++ b/netwerk/protocol/http/nsHttpHandler.cpp @@ -78,6 +78,7 @@ #if defined(XP_WIN) #include +#include "mozilla/WindowsVersion.h" #endif #if defined(XP_MACOSX) @@ -308,6 +309,8 @@ nsHttpHandler::SetFastOpenOSSupport() mFastOpenSupported = false; #if !defined(XP_WIN) && !defined(XP_LINUX) && !defined(ANDROID) && !defined(HAS_CONNECTX) return; +#elif defined(XP_WIN) + mFastOpenSupported = IsWindows10BuildOrLater(16299); #else nsAutoCString version; @@ -332,9 +335,7 @@ nsHttpHandler::SetFastOpenOSSupport() if (NS_SUCCEEDED(rv)) { // set min version minus 1. -#ifdef XP_WIN - int min_version[] = {10, 0}; -#elif XP_MACOSX +#if XP_MACOSX int min_version[] = {15, 0}; #elif ANDROID int min_version[] = {4, 4}; @@ -366,16 +367,6 @@ nsHttpHandler::SetFastOpenOSSupport() } } #endif - -#ifdef XP_WIN - if (mFastOpenSupported) { - // We have some problems with lavasoft software and tcp fast open. - if (GetModuleHandleW(L"pmls64.dll") || GetModuleHandleW(L"rlls64.dll")) { - mFastOpenSupported = false; - } - } -#endif - LOG(("nsHttpHandler::SetFastOpenOSSupport %s supported.\n", mFastOpenSupported ? "" : "not")); }