зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1329916 - Part 1: Remove netwerk checks for Windows XP. r=mcmanus
MozReview-Commit-ID: FBB3xll6wUx --HG-- extra : rebase_source : 3a895ccbc9ed33951d027063d8107d658b485657
This commit is contained in:
Родитель
1c2d0d367f
Коммит
46b5e52103
|
@ -40,7 +40,6 @@
|
|||
#include "xpcpublic.h"
|
||||
|
||||
#if defined(XP_WIN)
|
||||
#include "mozilla/WindowsVersion.h"
|
||||
#include "ShutdownLayer.h"
|
||||
#endif
|
||||
|
||||
|
@ -1743,21 +1742,6 @@ nsSocketTransport::OnSocketConnected()
|
|||
NS_ASSERTION(mFDref == 1, "wrong socket ref count");
|
||||
SetSocketName(mFD);
|
||||
mFDconnected = true;
|
||||
|
||||
#ifdef XP_WIN
|
||||
if (!IsWin2003OrLater()) { // windows xp
|
||||
PRSocketOptionData opt;
|
||||
opt.option = PR_SockOpt_RecvBufferSize;
|
||||
if (PR_GetSocketOption(mFD, &opt) == PR_SUCCESS) {
|
||||
SOCKET_LOG(("%p checking rwin on xp originally=%u\n",
|
||||
this, opt.value.recv_buffer_size));
|
||||
if (opt.value.recv_buffer_size < 65535) {
|
||||
opt.value.recv_buffer_size = 65535;
|
||||
PR_SetSocketOption(mFD, &opt);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
// Ensure keepalive is configured correctly if previously enabled.
|
||||
|
|
|
@ -28,10 +28,6 @@
|
|||
#include "nsIWidget.h"
|
||||
#include "mozilla/dom/FlyWebService.h"
|
||||
|
||||
#if defined(XP_WIN)
|
||||
#include "mozilla/WindowsVersion.h"
|
||||
#endif
|
||||
|
||||
#ifdef MOZ_TASK_TRACER
|
||||
#include "GeckoTaskTracer.h"
|
||||
#endif
|
||||
|
@ -1220,12 +1216,7 @@ nsSocketTransportService::UpdateSendBufferPref(nsIPrefBranch *pref)
|
|||
}
|
||||
|
||||
#if defined(XP_WIN)
|
||||
// If the pref is not set but this is windows set it depending on windows version
|
||||
if (!IsWin2003OrLater()) { // windows xp
|
||||
mSendBufferSize = 131072;
|
||||
} else { // vista or later
|
||||
mSendBufferSize = 131072 * 4;
|
||||
}
|
||||
mSendBufferSize = 131072 * 4;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -13,9 +13,6 @@
|
|||
#include "nsIScriptSecurityManager.h"
|
||||
#include "nsITimer.h"
|
||||
#include "mozilla/net/DNS.h"
|
||||
#ifdef XP_WIN
|
||||
#include "mozilla/WindowsVersion.h"
|
||||
#endif
|
||||
#include "prerror.h"
|
||||
|
||||
#define REQUEST 0x68656c6f
|
||||
|
@ -321,16 +318,6 @@ TEST(TestUDPSocket, TestUDPSocketMain)
|
|||
ASSERT_TRUE(timer);
|
||||
RefPtr<MulticastTimerCallback> timerCb = new MulticastTimerCallback(waiter);
|
||||
|
||||
// The following multicast tests using multiple sockets require a firewall
|
||||
// exception on Windows XP (the earliest version of Windows we now support)
|
||||
// before they pass. For now, we'll skip them here. Later versions of Windows
|
||||
// (Win2003 and onward) don't seem to have this issue.
|
||||
#ifdef XP_WIN
|
||||
if (!mozilla::IsWin2003OrLater()) { // i.e. if it is WinXP
|
||||
goto close;
|
||||
}
|
||||
#endif
|
||||
|
||||
// Join multicast group
|
||||
printf("Joining multicast group\n");
|
||||
phase = TEST_MULTICAST;
|
||||
|
|
Загрузка…
Ссылка в новой задаче