mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 06:43:32 +00:00
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:
parent
a37d580b90
commit
e24cdedfeb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user