You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Electron IPC doesn't supports Web Stream API #46863
Electron's IPC implementation uses the HTML standard Structured Clone Algorithm to serialize objects passed between processes, meaning that only certain types of objects can be passed through IPC channels.
Hello @himself65. Thanks for reporting this and helping to make Electron better!
Would it be possible for you to make a standalone testcase with only the code necessary to reproduce the issue? For example, Electron Fiddle is a great tool for making small test cases and makes it easy to publish your test case to a gist that Electron maintainers can use.
Stand-alone test cases make fixing issues go more smoothly: it ensure everyone's looking at the same issue, it removes all unnecessary variables from the equation, and it can also provide the basis for automated regression tests.
Now adding the
blocked/need-reproNeeds a test case to reproduce the bug
label for this reason. After you make a test case, please link to it in a followup comment. This issue will be closed in 10 days if the above is not addressed.
You make it easier for the team to fix your issue (and thus increase the likelihood of it happening) if you use Electron Fiddle to publish a testcase.
Just a tip: Make sure that you're not exposing a generic "on" handler over the context bridge in production. Refer to the Electron security guide on that topic.
I might wonder how to make this possible, I read the soruce code and looks like electron has it's own v8 value encode logic, but afaik there's already have a transferable class to transfer some internal class (like Web Stream) in node.js. Not sure how it happen to electron.
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue.
Activity
electron-issue-triage commentedon Apr 29, 2025
Hello @himself65. Thanks for reporting this and helping to make Electron better!
Would it be possible for you to make a standalone testcase with only the code necessary to reproduce the issue? For example, Electron Fiddle is a great tool for making small test cases and makes it easy to publish your test case to a gist that Electron maintainers can use.
Stand-alone test cases make fixing issues go more smoothly: it ensure everyone's looking at the same issue, it removes all unnecessary variables from the equation, and it can also provide the basis for automated regression tests.
Now adding the blocked/need-reproNeeds a test case to reproduce the bug
label for this reason. After you make a test case, please link to it in a followup comment. This issue will be closed in 10 days if the above is not addressed.
himself65 commentedon Apr 29, 2025
Update himself65/electron-stream-api@132349d
nikwen commentedon Apr 30, 2025
Thanks for sharing!
Notes:
nikwen commentedon May 2, 2025
Related: #46901
himself65 commentedon Jul 5, 2025
I might wonder how to make this possible, I read the soruce code and looks like electron has it's own v8 value encode logic, but afaik there's already have a transferable class to transfer some internal class (like Web Stream) in node.js. Not sure how it happen to electron.
himself65 commentedon Jul 5, 2025
maybe this is where I should start
electron/shell/renderer/api/electron_api_ipc_renderer.cc
Lines 108 to 147 in 5ef6897
try to use some node js internal class to share the transfer stuff, instread of blink logic
electron-issue-triage commentedon Oct 4, 2025
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
electron-issue-triage commentedon Nov 3, 2025
This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue.