From 7a4822f02bd724c1eb3079158f93331c4090b9ad Mon Sep 17 00:00:00 2001 From: "commit-queue@webkit.org" Date: Wed, 5 Apr 2017 16:50:03 +0000 Subject: [PATCH] Show a log message when an invalid message is received in non cocoa ports https://bugs.webkit.org/show_bug.cgi?id=170506 Patch by Carlos Garcia Campos on 2017-04-05 Reviewed by Michael Catanzaro. We just crash, but without knowing the details about the message it's impossible to debug. * Shared/ChildProcess.cpp: (WebKit::ChildProcess::didReceiveInvalidMessage): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@214947 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- Source/WebKit2/Shared/ChildProcess.cpp | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/Source/WebKit2/Shared/ChildProcess.cpp b/Source/WebKit2/Shared/ChildProcess.cpp index 060c63ae792..bc1f2d6ab6a 100644 --- a/Source/WebKit2/Shared/ChildProcess.cpp +++ b/Source/WebKit2/Shared/ChildProcess.cpp @@ -197,8 +197,9 @@ void ChildProcess::initializeSandbox(const ChildProcessInitializationParameters& { } -void ChildProcess::didReceiveInvalidMessage(IPC::Connection&, IPC::StringReference, IPC::StringReference) +void ChildProcess::didReceiveInvalidMessage(IPC::Connection&, IPC::StringReference messageReceiverName, IPC::StringReference messageName) { + WTFLogAlways("Received invalid message: '%s::%s'", messageReceiverName.toString().data(), messageName.toString().data()); CRASH(); } #endif -- 2.12.2