Closed Bug 2018254 Opened 9 months ago Closed 8 months ago

[wpt-sync] Sync PR 57938 - WebSocketStream: Create Uint8Array chunks

Categories

(Core :: Networking: WebSockets, task, P4)

task

Tracking

()

RESOLVED FIXED
150 Branch
Tracking Status
firefox150 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 57938 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/57938
Details from upstream follow.

Adam Rice <ricea@chromium.org> wrote:

WebSocketStream: Create Uint8Array chunks

WebSocketStream was creating ArrayBuffer chunks for incoming binary
messages. According to the draft specification at
https://whatpr.org/websockets/48.html#the-websocketstream-interface, the
chunks should be Uint8Arrays.

Change the type for binary messages to Uint8Array. Since this may be
incompatible with deployed usage, the change is behind an experimental
flag WebSocketStreamStandardBinaryChunkType and is enabled for tests but
not by default.

BUG=482079640

Change-Id: I09e5d2e2444116faf0a5e0dcc81ea8b3b61c275f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7570384
Commit-Queue: Adam Rice \<ricea@chromium.org>
Auto-Submit: Adam Rice \<ricea@chromium.org>
Reviewed-by: Dave Tapuska \<dtapuska@chromium.org>
Commit-Queue: Dave Tapuska \<dtapuska@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1587838}

Component: web-platform-tests → Networking: WebSockets
Product: Testing → Core

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Chrome, and Safari on GitHub CI

Total 12 tests and 1 subtests

Status Summary

Chrome

OK : 12
FAIL: 12

Safari

OK : 12
FAIL: 12

Links

GitHub PR Head
GitHub PR Base

Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch
You need to log in before you can comment on or make changes to this bug.