electron / electron/devtron

IPC handlers on webContents.ipc not unwrapped properly

Open
#324 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.8k
Forks
110
Avg merge
1h 54m
Merged PRs (30d)
7

Description

It looks like devtron is not properly unwrapping ipc handlers bound on `webContents.ipc` this gist https://gist.github.com/wbgsupport/8cb6257df3c50804675f8de6f0f7f73c reproduces the issue. All events show in devtron as expected but when the request reaches the handler it's not unwrapped. Using the gist the example output is shown in the console.

```
Handle: {
__uuid__devtron: 'deb2f126-07a2-49c2-98a4-6fb691ec33d4',
args: [ 'Hello World' ]
}
HandleOnce: {
__uuid__devtron: '4becdc5f-4821-42b7-ab88-cd8ac4862ee1',
args: [ 'Hello World' ]
}
Send On: Hello World
Send Once: Hello World
SendSync On: {
__uuid__devtron: '795a5dbc-16bb-4833-984d-7b068904f925',
args: [ 'Hello World' ]
}
SendSync Once: {
__uuid__devtron: '5eb677b7-07ae-4821-8d69-ea894e052c33',
args: [ 'Hello World' ]
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.