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: serialize messages being sent over chrome message ports #19104

Merged
merged 1 commit into from
Jul 15, 2019

Conversation

MarshallOfSound
Copy link
Member

Chrome appears to serialize these messages (see #19070) so we should as well to be consistent and to avoid bugs with Uint8/16 arrays

Fixes #19070

Notes: Uint8Array and Uint16Array can now be sent correctly in Chrome Extension MessagePort instances

Chrome appears to serialize these messages (see #19070) so we should as
well to be consistent and to avoid bugs with Uint8/16 arrays

Fixes #19070
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Jul 3, 2019
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Jul 4, 2019
@zcbenz zcbenz merged commit 6d5e494 into master Jul 15, 2019
@release-clerk
Copy link

release-clerk bot commented Jul 15, 2019

Release Notes Persisted

Uint8Array and Uint16Array can now be sent correctly in Chrome Extension MessagePort instances

@trop
Copy link
Contributor

trop bot commented Jul 15, 2019

I was unable to backport this PR to "5-0-x" cleanly;
you will need to perform this backport manually.

@trop
Copy link
Contributor

trop bot commented Jul 15, 2019

I have automatically backported this PR to "6-0-x", please check out #19252

@zcbenz zcbenz deleted the fix-chrome-port-messaging branch July 15, 2019 10:07
@sofianguy sofianguy added this to Fixed in 6.0.0-beta.14 in 6.1.x Jul 17, 2019
@codebytere
Copy link
Member

@MarshallOfSound do we want to send this back to 5-0-x?

@trop
Copy link
Contributor

trop bot commented Aug 6, 2019

A maintainer has manually backported this PR to "5-0-x", please check out #19654

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
6.1.x
Fixed in 6.0.0-beta.14
Development

Successfully merging this pull request may close these issues.

chrome.runtime's port.postMessage incorrectly send UintArray
3 participants