Skip to content

fix: nativeImage remote serialization - #23796

Merged
codebytere merged 4 commits into
9-x-yfrom
native-image-fixes-9
May 28, 2020
Merged

codebytere merged 4 commits into
9-x-yfrom
native-image-fixes-9

Conversation

@codebytere

@codebytere codebytere commented May 27, 2020 •

Copy link
Copy Markdown
Member

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 recently label May 27, 2020
@trop trop Bot mentioned this pull request May 27, 2020
4 tasks done
@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 recently 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 force-pushed the native-image-fixes-9 branch from 432ab0d to 2a0343a Compare May 27, 2020 16:40
@codebytere
codebytere merged commit 718bbf1 into 9-x-y May 28, 2020
@release-clerk

release-clerk Bot commented May 28, 2020

Copy link
Copy Markdown

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.

2 participants