Skip to content

When serializing some WebCodecs objects with forStorage=true, throw DataCloneError instead of TypeError #590

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

Merged
merged 1 commit into from
Oct 27, 2022

Conversation

padenot
Copy link
Collaborator

@padenot padenot commented Oct 20, 2022

This applies to EncodedVideoChunk, EncodedAudioChunk, AudioData and VideoFrame, and fixes issue #589.


Preview | Diff

…ataCloneError instead of TypeError

This applies to EncodedVideoChunk, EncodedAudioChunk, AudioData and
VideoFrame, and fixes issue #589.
@padenot padenot requested review from aboba and youennf October 20, 2022 07:08
@youennf
Copy link
Contributor

youennf commented Oct 20, 2022

It would be good to add corresponding wpt tests

@padenot
Copy link
Collaborator Author

padenot commented Oct 20, 2022

We have a series of tests coming (under review on our side at the moment) that check various things around postMessage of VideoFrames (cross origin, same origin, same agent cluster, different agent cluster, that kind of thing), we can probably add some about storage.

Copy link
Contributor

@dalecurtis dalecurtis left a comment

Choose a reason for hiding this comment

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

Thanks! Looks like that's what Chrome already fires; apologies for missing this earlier!

@aboba aboba merged commit faa91a7 into main Oct 27, 2022
@aboba aboba deleted the data-clone-error branch October 27, 2022 16:58
github-actions bot added a commit that referenced this pull request Oct 27, 2022
SHA: faa91a7
Reason: push, by aboba

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit that referenced this pull request Oct 27, 2022
SHA: faa91a7
Reason: push, by aboba

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit that referenced this pull request Oct 27, 2022
SHA: faa91a7
Reason: push, by aboba

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit that referenced this pull request Oct 27, 2022
SHA: faa91a7
Reason: push, by aboba

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit that referenced this pull request Oct 27, 2022
SHA: faa91a7
Reason: push, by aboba

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit that referenced this pull request Oct 27, 2022
SHA: faa91a7
Reason: push, by aboba

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit that referenced this pull request Oct 27, 2022
SHA: faa91a7
Reason: push, by aboba

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit that referenced this pull request Oct 27, 2022
SHA: faa91a7
Reason: push, by aboba

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit that referenced this pull request Oct 27, 2022
SHA: faa91a7
Reason: push, by aboba

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit that referenced this pull request Oct 27, 2022
SHA: faa91a7
Reason: push, by aboba

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit that referenced this pull request Oct 27, 2022
SHA: faa91a7
Reason: push, by aboba

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit that referenced this pull request Oct 27, 2022
SHA: faa91a7
Reason: push, by aboba

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit that referenced this pull request Oct 27, 2022
SHA: faa91a7
Reason: push, by aboba

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit that referenced this pull request Oct 27, 2022
SHA: faa91a7
Reason: push, by aboba

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit that referenced this pull request Oct 27, 2022
SHA: faa91a7
Reason: push, by aboba

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions bot added a commit that referenced this pull request Oct 27, 2022
SHA: faa91a7
Reason: push, by aboba

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants