Skip to content

Commit

Permalink
Bug 1553226 - Don't attempt to read annotations associated with Flash…
Browse files Browse the repository at this point in the history
… process crashes r=froydnj a=jcristau

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

--HG--
extra : source : 56fea0bcb2c46e4f2fee062479799f491f5f0a29
  • Loading branch information
gabrielesvelto committed May 22, 2019
1 parent 8c2ce37 commit 54553a6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion toolkit/crashreporter/nsExceptionHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3271,7 +3271,11 @@ bool TakeMinidumpForChild(uint32_t childPid, nsIFile** dump,
if (!pd) return false;

NS_IF_ADDREF(*dump = pd->minidump);
aAnnotations = *(pd->annotations);
// Only Flash process minidumps don't have annotations. Once we get rid of
// the Flash processes this check will become redundant.
if (pd->annotations) {
aAnnotations = *(pd->annotations);
}
if (aSequence) {
*aSequence = pd->sequence;
}
Expand Down

0 comments on commit 54553a6

Please sign in to comment.