Skip to content

contextBridge doesn't clone VideoFrame. #46901

@reitowo

Description

@reitowo

Preflight Checklist

Electron Version

37.0.0

What operating system(s) are you using?

Windows

Operating System Version

Windows 11

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

contextBridge should clone Cloneable types listed in the documents https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm, e.g. VideoFrame

Actual Behavior

It doesn't, and consider it a PlainObject, we can only get a plain object {}

Testcase Gist URL

https://gist.github.com/reitowo/333c280a9900cdcc84db01e1d962ce58

Image

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions