зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
a3a1057083
Коммит
54cacf1bc0
|
@ -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()) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче