Bug 160194

Summary: [Streams API] Replace ReadableStreamReader by ReadableStreamDefaultReader
Product: WebKit Reporter: Romain Bellessort <romain.wkt>
Component: WebCore Misc.Assignee: Romain Bellessort <romain.wkt>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, calvaris, commit-queue, helen_hope, lucasashtonn, rajsnh200, youennf
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Romain Bellessort
Reported 2016-07-26 05:34:59 PDT
Streams API now considers different kinds of readers. To start aligning with spec, ReadableStreamReader should be replaced by ReadableStreamDefaultReader.
Attachments
Patch (30.93 KB, patch)
2016-07-26 06:05 PDT, Romain Bellessort
no flags
Patch (43.36 KB, patch)
2016-07-26 08:18 PDT, Romain Bellessort
no flags
Patch (69.73 KB, patch)
2016-07-27 02:40 PDT, Romain Bellessort
no flags
Romain Bellessort
Comment 1 2016-07-26 06:05:16 PDT
Romain Bellessort
Comment 2 2016-07-26 08:18:49 PDT
youenn fablet
Comment 3 2016-07-26 09:44:26 PDT
Comment on attachment 284591 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=284591&action=review > Source/WebCore/features.json:681 > + "comment": "The ReadableStream and ReadableStreamDefaultReader interfaces are available but not functional." This comment is no longer valid. Also ReadableStreamDefaultReader is NoInterfaceObject. I would rewrite the comment to something like: The implementation does not support ReadableStreamBYOBReader. Also, it might be worth investigating the removal of STREAMS_API for ReadableStream (probably not WritableStream) and add a runtime flag for it.
Romain Bellessort
Comment 4 2016-07-27 02:40:50 PDT
Romain Bellessort
Comment 5 2016-07-27 02:44:10 PDT
(In reply to comment #3) > Comment on attachment 284591 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=284591&action=review > > > Source/WebCore/features.json:681 > > + "comment": "The ReadableStream and ReadableStreamDefaultReader interfaces are available but not functional." > > This comment is no longer valid. Also ReadableStreamDefaultReader is > NoInterfaceObject. > > I would rewrite the comment to something like: > The implementation does not support ReadableStreamBYOBReader. The new patch fixes that and also replaces ReadableStreamReader by ReadableStreamDefaultReader in LayoutTests/streams. > Also, it might be worth investigating the removal of STREAMS_API for > ReadableStream (probably not WritableStream) and add a runtime flag for it. Thanks, I'll try to investigate this.
youenn fablet
Comment 6 2016-07-27 03:18:35 PDT
Comment on attachment 284682 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=284682&action=review > Source/WebCore/Modules/streams/ReadableStreamDefaultReader.js:33 > + return @Promise.@reject(new @TypeError("Can only call ReadableStreamDefaultReader.cancel on instances of ReadableStreamDefaultReader")); This should use makeThisTypeError. See the latest change to Source/WebCore/Modules/streams/ReadableStreamReader.js Let's do that as a follow-up patch. Ditto for other functions.
WebKit Commit Bot
Comment 7 2016-07-27 03:41:30 PDT
Comment on attachment 284682 [details] Patch Clearing flags on attachment: 284682 Committed r203772: <http://trac.webkit.org/changeset/203772>
WebKit Commit Bot
Comment 8 2016-07-27 03:41:35 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.