Invoke mojo::ProcessErrorCallback synchronously / without PostTask.
Synchronous invocation is desirable to retain the callstack and crash keys that have led to a mojo::ReportBadMessage call (see #c0 in https://crbug.com/1057149). Synchronous invocation should be safe, because mojo APIs should now be safe for reentrancy (see https://crbug.com/1057149#c5). Note that even before this CL the default error callback (see mojo::core::SetDefaultProcessErrorCallback) has been invoked synchronously (see how Core::ExtractMessagePipeFromInvitation doesn't wrap |default_process_error_callback_| in any task-aware wrappers). Bug: 1057149 Change-Id: Ie6848bbdf1e15e23c2f001b9d9a37f85a583acea Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2080090 Commit-Queue: Ken Rockot <rockot@google.com> Auto-Submit: Łukasz Anforowicz <lukasza@chromium.org> Reviewed-by:Ken Rockot <rockot@google.com> Cr-Commit-Position: refs/heads/master@{#745659}
Showing
Please register or sign in to comment