зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1715755 - Part 2: Recover from unhandled special messages without crashing, r=handyman
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:
Родитель
e3b52f319a
Коммит
4cc950d178
|
@ -2039,7 +2039,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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче