Repository navigation
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=327156 - #63543
Merged
annevk merged 1 commit intoOct 13, 2026
Merged
Conversation
Collaborator
|
This patch has been exported from WebKit; it will be approved automatically once the downstream patch is r+. |
annevk
enabled auto-merge (rebase)
October 11, 2026 14:26
whatwg/html#13055 adds the [SameAgentCluster] extended attribute: serializing or transferring an object implementing such an interface restricts the result to the agent cluster it came from, deserializing it in another agent cluster throws a DataCloneError, and serializing it for storage throws as well. This is what w3c/webcodecs#717 needs for EncodedVideoChunk, VideoFrame, EncodedAudioChunk, and AudioData, and what the WebCodecs crossAgentCluster tests already expect. MediaStreamTrack and MediaStreamTrackHandle are transferred the same way, so restrict them too. The bindings generator now emits isRestrictedToSameAgentCluster for [Serializable] and [Transferable] interfaces. SerializedScriptValue maps each serialization tag to the PlatformObjectSerializationTraits of its interface in one place, platformObjectSerializationTraitsForTag(), which both the exposure check and the new isTagRestrictedToSameAgentCluster() use. When CloneSerializer writes a restricted tag it writes the agent cluster ID after it, as JSC already does for SharedArrayBuffer, and CloneDeserializer checks that ID before reading the object. All of these objects already refuse to be serialized for storage, before their tag is written. The existing tests only cover the video types, so add tests for AudioData, EncodedAudioChunk, MediaStreamTrack, and MediaStreamTrackHandle. WebKit-Bug: https://bugs.webkit.org/show_bug.cgi?id=327156
annevk
force-pushed
the
wpt-export-for-webkit-327156
branch
from
October 13, 2026 08:04
188aa7f to
5e28a82
Compare
wpt-pr-bot
approved these changes
Oct 13, 2026
wpt-pr-bot
left a comment
Collaborator
There was a problem hiding this comment.
The review process for this patch is being conducted in the WebKit project.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
WebKit export from bug: Implement [SameAgentCluster] for WebCodecs objects