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-03-03 10:24:37 +00:00
Родитель a3a1057083
Коммит 54cacf1bc0
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -1718,7 +1718,11 @@ void ContentParent::ActorDestroy(ActorDestroyReason why) {
// if mCreatedPairedMinidumps is true, we've already generated
// parent/child dumps for desktop crashes.
if (!mCreatedPairedMinidumps) {
mCrashReporter->GenerateCrashReport(OtherPid());
if (mCrashReporter->GenerateCrashReport(OtherPid())) {
// Propagate `isLikelyOOM`.
Unused << props->SetPropertyAsBool(NS_LITERAL_STRING("isLikelyOOM"),
mCrashReporter->IsLikelyOOM());
}
}
if (mCrashReporter->HasMinidump()) {