Commit 54cacf1b authored by David Teller's avatar David Teller
Browse files

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
parent a3a10570
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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()) {