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

fix: nativeImage remote serialization #23797

Merged
merged 5 commits into from
Jun 8, 2020
Merged

Conversation

codebytere
Copy link
Member

Backport of #23543.
Backport of #23666.
Backport of #23693.
Backport of #23759.

See those PRs for more details.

Notes: Ensured proper nativeImage serialization between renderer and browser processes via remote.

We weren't serializing nativeImages properly in the remote module, leading to gin conversion errors when trying to, for example, create a new context menu in the renderer with icons using nativeImage. This fixes that by adding a new special case to handle them.
* refactor: correctly serialize nativeImage/buffer with typeUtils

* test: add serialization specs

* fix: construct from dataURL

* test: test for dataURL specificity
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label May 27, 2020
@trop trop bot mentioned this pull request May 27, 2020
4 tasks
@trop trop bot added 8-x-y backport This is a backport PR labels May 27, 2020
@codebytere codebytere requested a review from a team May 27, 2020 16:12
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label May 27, 2020
zcbenz
zcbenz previously requested changes Jun 2, 2020
Copy link
Contributor

@zcbenz zcbenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Build is failing.

@codebytere codebytere force-pushed the native-image-fixes-8 branch 2 times, most recently from 65e5a26 to 2cd96b1 Compare June 3, 2020 17:03
@codebytere codebytere dismissed zcbenz’s stale review June 8, 2020 18:39

Build is no longer failing.

@codebytere codebytere requested a review from a team June 8, 2020 18:39
@codebytere codebytere merged commit be08ff1 into 8-x-y Jun 8, 2020
@release-clerk
Copy link

release-clerk bot commented Jun 8, 2020

Release Notes Persisted

Ensured proper nativeImage serialization between renderer and browser processes via remote.

@codebytere codebytere deleted the native-image-fixes-8 branch June 8, 2020 19:08
@ckerr ckerr mentioned this pull request Jun 8, 2020
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8-x-y backport This is a backport PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants