Bug 529877 - Remove stray printfs in e10s dom/ipc code; r=cjones

This commit is contained in:
Alessio Placitelli 2014-04-12 10:55:49 +02:00
parent e5208fea4a
commit c9863d7f9a
2 changed files with 20 additions and 6 deletions

View File

@ -115,7 +115,11 @@ AssertAppProcess(PContentParent* aActor,
}
}
printf_stderr("Security problem: Content process does not have `%s'. It will be killed.\n", aCapability);
NS_ERROR(
nsPrintfCString(
"Security problem: Content process does not have `%s'. It will be killed.\n",
aCapability).get());
static_cast<ContentParent*>(aActor)->KillHard();
return false;
@ -133,7 +137,11 @@ AssertAppStatus(PContentParent* aActor,
}
}
printf_stderr("Security problem: Content process does not have `%d' status. It will be killed.\n", aStatus);
NS_ERROR(
nsPrintfCString(
"Security problem: Content process does not have `%d' status. It will be killed.",
aStatus).get());
static_cast<ContentParent*>(aActor)->KillHard();
return false;

View File

@ -1984,8 +1984,11 @@ ContentParent::RecvNuwaReady()
{
#ifdef MOZ_NUWA_PROCESS
if (!IsNuwaProcess()) {
printf_stderr("Terminating child process %d for unauthorized IPC message: "
"NuwaReady", Pid());
NS_ERROR(
nsPrintfCString(
"Terminating child process %d for unauthorized IPC message: NuwaReady",
Pid()).get());
KillHard();
return false;
}
@ -2003,8 +2006,11 @@ ContentParent::RecvAddNewProcess(const uint32_t& aPid,
{
#ifdef MOZ_NUWA_PROCESS
if (!IsNuwaProcess()) {
printf_stderr("Terminating child process %d for unauthorized IPC message: "
"AddNewProcess(%d)", Pid(), aPid);
NS_ERROR(
nsPrintfCString(
"Terminating child process %d for unauthorized IPC message: "
"AddNewProcess(%d)", Pid(), aPid).get());
KillHard();
return false;
}