Bug 1748852: Assert on IPC_FAIL unless fuzzing. r=ipc-reviewers,nika,media-playback-reviewers,alwu
Differential Revision: https://phabricator.services.mozilla.com/D135238
This commit is contained in:
@@ -62,6 +62,11 @@ IPCResult IPCResult::Fail(NotNull<IProtocol*> actor, const char* where,
|
||||
nsPrintfCString errorMsg("%s %s\n", where, why);
|
||||
actor->GetIPCChannel()->Listener()->ProcessingError(
|
||||
HasResultCodes::MsgProcessingError, errorMsg.get());
|
||||
|
||||
MOZ_ASSERT_UNLESS_FUZZING(false,
|
||||
"Please ensure to IPC_FAIL only when in an "
|
||||
"unrecoverable, unexpected state.");
|
||||
|
||||
return IPCResult(false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user