Bug 1416667 - Backed out changeset 22453f19f050. r=backout

MozReview-Commit-ID: 3kaRtZtCQru
This commit is contained in:
Chris Pearce 2018-01-30 15:02:01 +13:00
Родитель b0f6b50b37
Коммит 2833f14652
1 изменённых файлов: 6 добавлений и 10 удалений

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

@ -659,25 +659,21 @@ GMPChild::ActorDestroy(ActorDestroyReason aWhy)
void
GMPChild::ProcessingError(Result aCode, const char* aReason)
{
if (!aReason) {
aReason = "";
}
switch (aCode) {
case MsgDropped:
_exit(0); // Don't trigger a crash report.
case MsgNotKnown:
MOZ_CRASH_UNSAFE_PRINTF("aborting because of MsgNotKnown, reason(%s)", aReason);
MOZ_CRASH("aborting because of MsgNotKnown");
case MsgNotAllowed:
MOZ_CRASH_UNSAFE_PRINTF("aborting because of MsgNotAllowed, reason(%s)", aReason);
MOZ_CRASH("aborting because of MsgNotAllowed");
case MsgPayloadError:
MOZ_CRASH_UNSAFE_PRINTF("aborting because of MsgPayloadError, reason(%s)", aReason);
MOZ_CRASH("aborting because of MsgPayloadError");
case MsgProcessingError:
MOZ_CRASH_UNSAFE_PRINTF("aborting because of MsgProcessingError, reason(%s)", aReason);
MOZ_CRASH("aborting because of MsgProcessingError");
case MsgRouteError:
MOZ_CRASH_UNSAFE_PRINTF("aborting because of MsgRouteError, reason(%s)", aReason);
MOZ_CRASH("aborting because of MsgRouteError");
case MsgValueError:
MOZ_CRASH_UNSAFE_PRINTF("aborting because of MsgValueError, reason(%s)", aReason);
MOZ_CRASH("aborting because of MsgValueError");
default:
MOZ_CRASH("not reached");
}