Bug 230219 - Refactor WritableStream to better integrate https://streams.spec.whatwg.org/#create-writable-stream
Summary: Refactor WritableStream to better integrate https://streams.spec.whatwg.org/#...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: youenn fablet
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-09-13 08:17 PDT by youenn fablet
Modified: 2021-09-14 10:02 PDT (History)
7 users (show)

See Also:


Attachments
Patch (12.70 KB, patch)
2021-09-13 08:24 PDT, youenn fablet
no flags Details | Formatted Diff | Diff
Patch for landing (13.61 KB, patch)
2021-09-14 06:54 PDT, youenn fablet
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description youenn fablet 2021-09-13 08:17:36 PDT
Refactor WritableStream to better integrate https://streams.spec.whatwg.org/#create-writable-stream
Comment 1 Radar WebKit Bug Importer 2021-09-13 08:23:40 PDT
<rdar://problem/83055758>
Comment 2 youenn fablet 2021-09-13 08:24:05 PDT
Created attachment 438041 [details]
Patch
Comment 3 Sihui Liu 2021-09-13 13:18:09 PDT
Comment on attachment 438041 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=438041&action=review

r=me, if all bots are green

> Source/WebCore/ChangeLog:9
> +        we were still going through the WritableStream constructor taking an underlying source.

underlying sink?

> Source/WebCore/Modules/streams/WritableStreamInternals.js:51
> +    const internalStream = { };

Do we want to Assert: ! IsNonNegativeNumber(highWaterMark) is true as spec?
Comment 4 youenn fablet 2021-09-14 06:54:41 PDT
Created attachment 438132 [details]
Patch for landing
Comment 5 youenn fablet 2021-09-14 06:55:26 PDT
Thanks for the review.

(In reply to Sihui Liu from comment #3)
> Comment on attachment 438041 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=438041&action=review
> 
> r=me, if all bots are green
> 
> > Source/WebCore/ChangeLog:9
> > +        we were still going through the WritableStream constructor taking an underlying source.
> 
> underlying sink?

Done.

> > Source/WebCore/Modules/streams/WritableStreamInternals.js:51
> > +    const internalStream = { };
> 
> Do we want to Assert: ! IsNonNegativeNumber(highWaterMark) is true as spec?

Added, I had to fix an actual bug in extractHWM.
Comment 6 EWS 2021-09-14 10:02:15 PDT
Committed r282395 (241656@main): <https://commits.webkit.org/241656@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 438132 [details].