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
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/140890218>
Domenic Denicola
The correct fix here is slightly tweaked in https://github.com/whatwg/streams/pull/1342.