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 #23796

Merged
merged 4 commits into from May 28, 2020
Merged

fix: nativeImage remote serialization #23796

merged 4 commits into from May 28, 2020

Conversation

codebytere
Copy link
Member

@codebytere codebytere commented May 27, 2020

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

See those PRs for more info.

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
@codebytere codebytere requested a review from a team May 27, 2020 15:59
@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 9-x-y backport This is a backport PR labels May 27, 2020
@codebytere codebytere changed the title Native image fixes 9 fix: nativeImage remote serialization May 27, 2020
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label May 27, 2020
@codebytere codebytere force-pushed the native-image-fixes-9 branch 2 times, most recently from fa6dcf4 to 432ab0d Compare May 27, 2020 16:17
@codebytere codebytere merged commit 718bbf1 into 9-x-y May 28, 2020
@release-clerk
Copy link

release-clerk bot commented May 28, 2020

Release Notes Persisted

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

@codebytere codebytere deleted the native-image-fixes-9 branch May 28, 2020 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
9-x-y backport This is a backport PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants