Closed Bug 1734243 Opened 3 years ago Closed 2 years ago

Implement ReadableStream.pipeThrough

Categories

(Core :: DOM: Streams, task, P3)

task

Tracking

()

RESOLVED FIXED

People

(Reporter: mgaudet, Assigned: saschanaz)

References

(Blocks 1 open bug, )

Details

Attachments

(4 files)

No description provided.
Blocks: dom-streams
Blocks: 1730584
No longer blocks: dom-streams
Depends on: 1660555

Seems pipeThrough is a short wrapper on top of pipeTo, without direct dependency for TransformStream.

Depends on: 1734241

TransformStream is not a direct dependency, but it's meant to be used together. I think the only difficult thing for implementing pipeThrough is

Step 5. Set promise.[[PromiseIsHandled]] to true.

We have Promise::SetSettledPromiseIsHandled, but I think in this case the promise actually isn't settled.

This sounds like a lower hanging fruit than the whole TransformStream...

Assignee: nobody → krosylight
Status: NEW → ASSIGNED
Attachment #9265199 - Attachment description: Bug 1734243 - Part 1: Add JS::SetAnyPromiseIsHandled r=mgaudet → Bug 1734243 - Part 1: Add JS::SetAnyPromiseIsHandled r=arai
Pushed by krosylight@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d89c07e28e42
Part 1: Add JS::SetAnyPromiseIsHandled r=arai
Pushed by krosylight@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c5a25a5870f1
Part 2: Implement ReadableStream#pipeThrough r=mgaudet,evilpie,emilio
https://hg.mozilla.org/integration/autoland/rev/b4538bb5c349
Part 3: Use SetAnyPromiseIsHandled in ServiceWorkerScriptCache r=smaug
Pushed by smolnar@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/886bd2c17225
Part 4: Add missing AbortSignal header in PipeTo. CLOSED TREE
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Keywords: leave-open
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: