зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1152864 - Add DISABLE_UNSAFE_CPOW_WARNINGS environment variable for our test harnesses. r=jimm.
--HG-- extra : rebase_source : f0fe71ebd3e9f7bddad908cbea0eb980ce23c1b2
This commit is contained in:
Родитель
6c25784b26
Коммит
63226d2f85
|
@ -589,6 +589,10 @@ static nsTArray<PrefSetting>* sNuwaPrefUpdates;
|
|||
// case between StartUp() and ShutDown() or JoinAllSubprocesses().
|
||||
static bool sCanLaunchSubprocesses;
|
||||
|
||||
// Set to true if the DISABLE_UNSAFE_CPOW_WARNINGS environment variable is
|
||||
// set.
|
||||
static bool sDisableUnsafeCPOWWarnings = false;
|
||||
|
||||
// The first content child has ID 1, so the chrome process can have ID 0.
|
||||
static uint64_t gContentChildID = 1;
|
||||
|
||||
|
@ -747,6 +751,8 @@ ContentParent::StartUp()
|
|||
// Test the PBackground infrastructure on ENABLE_TESTS builds when a special
|
||||
// testing preference is set.
|
||||
MaybeTestPBackground();
|
||||
|
||||
sDisableUnsafeCPOWWarnings = PR_GetEnv("DISABLE_UNSAFE_CPOW_WARNINGS");
|
||||
}
|
||||
|
||||
/*static*/ void
|
||||
|
@ -1747,6 +1753,7 @@ ContentParent::OnBeginSyncTransaction() {
|
|||
if (XRE_GetProcessType() == GeckoProcessType_Default) {
|
||||
nsCOMPtr<nsIConsoleService> console(do_GetService(NS_CONSOLESERVICE_CONTRACTID));
|
||||
JSContext *cx = nsContentUtils::GetCurrentJSContext();
|
||||
if (!sDisableUnsafeCPOWWarnings) {
|
||||
if (console && cx) {
|
||||
nsAutoString filename;
|
||||
uint32_t lineno = 0;
|
||||
|
@ -1760,6 +1767,7 @@ ContentParent::OnBeginSyncTransaction() {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
ContentParent::OnChannelConnected(int32_t pid)
|
||||
|
|
Загрузка…
Ссылка в новой задаче