Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error sending ImageBitmap over ipc #26510

Closed
3 tasks done
taltened opened this issue Nov 16, 2020 · 1 comment
Closed
3 tasks done

Error sending ImageBitmap over ipc #26510

taltened opened this issue Nov 16, 2020 · 1 comment

Comments

@taltened
Copy link

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

  • Electron Version:
    • 9.3.2
  • Operating System:
    • macOS 10.15.7
  • Last Known Working Electron version:
    • Unknown

Expected Behavior

An ImageBitmap object can be sent over ipc, since it supports structured clone, and all objects supporting structured clone can be sent over ipc as per electron docs.

Actual Behavior

Sending an ImageBitmap over ipc results in error "An object could not be cloned".

To Reproduce

https://gist.github.com/25479aa8f0b21401d19ae4642557bfe3

Screenshots

Additional Information

@nornagon
Copy link
Member

The main process doesn't have DOM support—it's closer to a vanilla Node.js environment, which doesn't have ImageBitmap. So unfortunately we can't support sending those DOM objects to the main process as the main process has no way to manipulate them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants