Bug 1715755 - Part 2: Recover from unhandled special messages without crashing, r=handyman a=pascalc

This change instead recovers from unhandled special messages by reporting a
normal IPC error, which should be handled using the normal IPC error
mechanisms.

Depends on D123148

Differential Revision: https://phabricator.services.mozilla.com/D123149
This commit is contained in:
Nika Layzell 2021-08-25 18:30:24 +00:00
parent a37d580b90
commit e24cdedfeb

View File

@ -2058,7 +2058,9 @@ void MessageChannel::DispatchAsyncMessage(ActorLifecycleProxy* aProxy,
MOZ_RELEASE_ASSERT(!aMsg.is_interrupt() && !aMsg.is_sync());
if (aMsg.routing_id() == MSG_ROUTING_NONE) {
MOZ_CRASH("unhandled special message!");
NS_WARNING("unhandled special message!");
MaybeHandleError(MsgNotKnown, aMsg, "DispatchAsyncMessage");
return;
}
Result rv;