Bug 1589493 - Expose isLikelyOOM to Content crash handlers;r=gsvelto

Depends on D54129

Differential Revision: https://phabricator.services.mozilla.com/D54130

--HG--
extra : moz-landing-system : lando
This commit is contained in:
David Teller 2020-02-25 18:16:31 +00:00
parent c15218401c
commit d35076d793

View File

@ -1786,6 +1786,9 @@ void ContentParent::ActorDestroy(ActorDestroyReason why) {
if (!dumpID.IsEmpty()) {
props->SetPropertyAsAString(NS_LITERAL_STRING("dumpID"), dumpID);
}
// Propagate `isLikelyOOM`.
Unused << props->SetPropertyAsBool(NS_LITERAL_STRING("isLikelyOOM"),
mCrashReporter->IsLikelyOOM());
}
nsAutoString cpId;
cpId.AppendInt(static_cast<uint64_t>(this->ChildID()));