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

Update the API re PostMessageOptions vs StructuredSerializeOptions #15

Merged
merged 1 commit into from
Dec 15, 2021

Conversation

andreubotella
Copy link
Contributor

whatwg/html#3414 introduced the structuredClone() API and renamed the PostMessageOptions dictionary to StructuredSerializeOptions. When implementing this change in Chromium (https://chromium-review.googlesource.com/c/chromium/src/+/3245334), it was decided that, since structuredClone() has no use for the includeUserActivation parameter, it was better to keep the StructuredSerializeOptions as per the spec and incorporate that parameter in a derived interface keeping the old name PostMessageOptions.

This change updates the proposed IDL of the explainer to reflect these changes.

whatwg/html#3414 introduced the `structuredClone()` API and renamed the
`PostMessageOptions` dictionary to `StructuredSerializeOptions`. When
implementing this change in Chromium
(https://chromium-review.googlesource.com/c/chromium/src/+/3245334), it
was decided that, since `structuredClone()` has no use for the
`includeUserActivation` parameter, it was better to keep the
`StructuredSerializeOptions` as per the spec and incorporate that
parameter in a derived interface keeping the old name
`PostMessageOptions`.

This change updates the proposed IDL of the explainer to reflect these
changes.
@dtapuska dtapuska merged commit 54f7239 into dtapuska:master Dec 15, 2021
@andreubotella andreubotella deleted the patch-1 branch December 15, 2021 16:14
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.

2 participants