WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
160194
[Streams API] Replace ReadableStreamReader by ReadableStreamDefaultReader
https://bugs.webkit.org/show_bug.cgi?id=160194
Summary
[Streams API] Replace ReadableStreamReader by ReadableStreamDefaultReader
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
Details
Formatted Diff
Diff
Patch
(43.36 KB, patch)
2016-07-26 08:18 PDT
,
Romain Bellessort
no flags
Details
Formatted Diff
Diff
Patch
(69.73 KB, patch)
2016-07-27 02:40 PDT
,
Romain Bellessort
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Romain Bellessort
Comment 1
2016-07-26 06:05:16 PDT
Created
attachment 284585
[details]
Patch
Romain Bellessort
Comment 2
2016-07-26 08:18:49 PDT
Created
attachment 284591
[details]
Patch
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
Created
attachment 284682
[details]
Patch
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.
Top of Page
Format For Printing
XML
Clone This Bug