Bug 283739

Summary: Streams: writableStreamDefaultControllerGetChunkSize undefined strategy case slightly broken
Product: WebKit Reporter: Domenic Denicola <d>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: webkit-bug-importer, youennf
Priority: P3 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Domenic Denicola
Reported 2024-11-26 20:24:47 PST
See https://github.com/whatwg/streams/pull/1333. Per https://github.com/WebKit/WebKit/blob/3d86280341992fc49475f4a9b7aca7f9c1edad01/Source/WebCore/Modules/streams/WritableStreamInternals.js#L717, WebKit has the same bug as the reference implementation did: it catches the exception caused by trying to call `undefined` as a function, and then attempts to error the stream with it. I don't believe this is observable since the stream is already erroring so the "TypeError: cannot call undefined" will not actually be exposed to the web developer. However, it's probably best to fix this.
Attachments
Radar WebKit Bug Importer
Comment 1 2024-12-03 20:25:14 PST
Domenic Denicola
Comment 2 2025-04-02 23:36:10 PDT
The correct fix here is slightly tweaked in https://github.com/whatwg/streams/pull/1342.
Note You need to log in before you can comment on or make changes to this bug.