mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 1172393 - Let XPCOM shutdown properly on Windows versions later than XP - r=mccr8
This commit is contained in:
parent
c6d76d7fd9
commit
dbca0c72ec
@ -93,6 +93,7 @@ extern nsresult nsStringInputStreamConstructor(nsISupports*, REFNSIID, void**);
|
||||
#include "SpecialSystemDirectory.h"
|
||||
|
||||
#if defined(XP_WIN)
|
||||
#include "mozilla/WindowsVersion.h"
|
||||
#include "nsWindowsRegKey.h"
|
||||
#endif
|
||||
|
||||
@ -954,7 +955,7 @@ ShutdownXPCOM(nsIServiceManager* aServMgr)
|
||||
// On Windows XP debug, there are intermittent failures in
|
||||
// dom/media/tests/mochitest/test_peerConnection_basicH264Video.html
|
||||
// if we don't exit early in a child process. See bug 1073310.
|
||||
if (XRE_GetProcessType() == GeckoProcessType_Content) {
|
||||
if (XRE_GetProcessType() == GeckoProcessType_Content && !IsVistaOrLater()) {
|
||||
NS_WARNING("Exiting child process early!");
|
||||
exit(0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user