Skip to content

fix: nativeImage remote serialization - #23797

Merged
codebytere merged 5 commits into
8-x-yfrom
native-image-fixes-8
Jun 8, 2020
Merged

codebytere merged 5 commits into
8-x-yfrom
native-image-fixes-8

Conversation

@codebytere

Copy link
Copy Markdown
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 recently label May 27, 2020
@trop trop Bot mentioned this pull request May 27, 2020
4 tasks done
@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 recently label May 27, 2020
@codebytere
codebytere force-pushed the native-image-fixes-8 branch from c785ef2 to e89190b Compare May 27, 2020 16:18
zcbenz
zcbenz previously requested changes Jun 2, 2020

@zcbenz zcbenz left a comment

Copy link
Copy Markdown
Contributor

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 force-pushed the native-image-fixes-8 branch from 2cd96b1 to 2cf09d4 Compare June 3, 2020 17:22
@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

release-clerk Bot commented Jun 8, 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-8 branch June 8, 2020 19:08
@ckerr ckerr mentioned this pull request Jun 8, 2020
5 of 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