mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 13:57:32 +00:00
Flipped the default of the Windows Warning box that can come up. It now requires an environment variable be set to come up.
This commit is contained in:
parent
108efebf8a
commit
88639c509e
@ -98,7 +98,7 @@
|
||||
* always compiled in, in case some other module that uses it is
|
||||
* compiled with debugging even if this library is not.
|
||||
*/
|
||||
static PRBool gWarningMessageBoxEnable = PR_TRUE;
|
||||
static PRBool gWarningMessageBoxEnable = PR_FALSE;
|
||||
static PRLogModuleInfo* gDebugLog;
|
||||
|
||||
static void InitLog(void)
|
||||
@ -108,8 +108,8 @@ static void InitLog(void)
|
||||
gDebugLog->level = PR_LOG_DEBUG;
|
||||
|
||||
#if defined(XP_UNIX) || defined(_WIN32)
|
||||
if (getenv("MOZ_WARNING_NO_MESSAGE_BOX")) {
|
||||
gWarningMessageBoxEnable = PR_FALSE;
|
||||
if (getenv("MOZ_WARNING_MESSAGE_BOX")) {
|
||||
gWarningMessageBoxEnable = PR_TRUE;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -98,7 +98,7 @@
|
||||
* always compiled in, in case some other module that uses it is
|
||||
* compiled with debugging even if this library is not.
|
||||
*/
|
||||
static PRBool gWarningMessageBoxEnable = PR_TRUE;
|
||||
static PRBool gWarningMessageBoxEnable = PR_FALSE;
|
||||
static PRLogModuleInfo* gDebugLog;
|
||||
|
||||
static void InitLog(void)
|
||||
@ -108,8 +108,8 @@ static void InitLog(void)
|
||||
gDebugLog->level = PR_LOG_DEBUG;
|
||||
|
||||
#if defined(XP_UNIX) || defined(_WIN32)
|
||||
if (getenv("MOZ_WARNING_NO_MESSAGE_BOX")) {
|
||||
gWarningMessageBoxEnable = PR_FALSE;
|
||||
if (getenv("MOZ_WARNING_MESSAGE_BOX")) {
|
||||
gWarningMessageBoxEnable = PR_TRUE;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user