Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Enable IPCMessages debug logging for non-Cocoa ports
https://bugs.webkit.org/show_bug.cgi?id=230081
<rdar://problem/82939596>

Reviewed by Don Olmstead.

* Platform/IPC/MessageArgumentDescriptions.h: Added some #if to
align with the generated MessageArgumentDescriptions.cpp.

Canonical link: https://commits.webkit.org/241667@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@282406 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
fujii committed Sep 14, 2021
1 parent 755427f commit cbe3152
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Source/WebKit/ChangeLog
@@ -1,3 +1,14 @@
2021-09-14 Fujii Hironori <Hironori.Fujii@sony.com>

Enable IPCMessages debug logging for non-Cocoa ports
https://bugs.webkit.org/show_bug.cgi?id=230081
<rdar://problem/82939596>

Reviewed by Don Olmstead.

* Platform/IPC/MessageArgumentDescriptions.h: Added some #if to
align with the generated MessageArgumentDescriptions.cpp.

2021-09-14 Chris Dumez <cdumez@apple.com>

[Hardening] Validate IDBValue's blob paths in WebIDBServer::putOrAdd()
Expand Down
8 changes: 8 additions & 0 deletions Source/WebKit/Platform/IPC/MessageArgumentDescriptions.h
Expand Up @@ -25,6 +25,8 @@

#pragma once

#if ENABLE(IPC_TESTING_API) || !LOG_DISABLED

#include "MessageNames.h"
#include <wtf/Vector.h>

Expand All @@ -39,9 +41,13 @@ namespace IPC {

class Decoder;

#if ENABLE(IPC_TESTING_API)

std::optional<JSC::JSValue> jsValueForArguments(JSC::JSGlobalObject*, MessageName, Decoder&);
std::optional<JSC::JSValue> jsValueForReplyArguments(JSC::JSGlobalObject*, MessageName, Decoder&);

#endif // ENABLE(IPC_TESTING_API)

struct ArgumentDescription {
const char* name;
const char* type;
Expand All @@ -53,3 +59,5 @@ std::optional<Vector<ArgumentDescription>> messageArgumentDescriptions(MessageNa
std::optional<Vector<ArgumentDescription>> messageReplyArgumentDescriptions(MessageName);

}

#endif // ENABLE(IPC_TESTING_API) || !LOG_DISABLED

0 comments on commit cbe3152

Please sign in to comment.