Bug 1124933 - Include crash reason when intentionally crashing content process (r=bent)

This commit is contained in:
Bill McCloskey
2015-02-03 09:09:27 -08:00
parent 7f80d25ce3
commit 021be81884
20 changed files with 60 additions and 54 deletions

View File

@@ -157,7 +157,7 @@ AssertAppProcess(PContentParent* aActor,
"Security problem: Content process does not have `%s'. It will be killed.\n",
aCapability).get());
static_cast<ContentParent*>(aActor)->KillHard();
static_cast<ContentParent*>(aActor)->KillHard("AssertAppProcess");
return false;
}
@@ -179,7 +179,7 @@ AssertAppStatus(PContentParent* aActor,
"Security problem: Content process does not have `%d' status. It will be killed.",
aStatus).get());
static_cast<ContentParent*>(aActor)->KillHard();
static_cast<ContentParent*>(aActor)->KillHard("AssertAppStatus");
return false;
}
@@ -198,7 +198,7 @@ AssertAppPrincipal(PContentParent* aActor,
{
if (!aPrincipal) {
NS_WARNING("Principal is invalid, killing app process");
static_cast<ContentParent*>(aActor)->KillHard();
static_cast<ContentParent*>(aActor)->KillHard("AssertAppPrincipal");
return false;
}
@@ -220,7 +220,7 @@ AssertAppPrincipal(PContentParent* aActor,
}
NS_WARNING("Principal is invalid, killing app process");
static_cast<ContentParent*>(aActor)->KillHard();
static_cast<ContentParent*>(aActor)->KillHard("AssertAppPrincipal");
return false;
}