Skip to content

Streams: Implement stream pipe-to#35650

Merged
Taym95 merged 33 commits intoservo:mainfrom
gterzian:implement_stream_pipeto
Mar 18, 2025
Merged

Streams: Implement stream pipe-to#35650
Taym95 merged 33 commits intoservo:mainfrom
gterzian:implement_stream_pipeto

Conversation

@gterzian
Copy link
Copy Markdown
Member

Implement https://streams.spec.whatwg.org/#rs-pipe-to

Part of #34676


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #___ (GitHub issue number if applicable)
  • There are tests for these changes OR
  • These changes do not require tests because ___

@gterzian gterzian changed the title dom: Implement stream pipeto dom: Implement stream pipe-to Feb 25, 2025
@gterzian gterzian force-pushed the implement_stream_pipeto branch 2 times, most recently from c749273 to 66ffb89 Compare February 28, 2025 15:40
@gterzian gterzian changed the title dom: Implement stream pipe-to Streams: Implement stream pipe-to Mar 3, 2025
@gterzian gterzian force-pushed the implement_stream_pipeto branch 6 times, most recently from e9a6e46 to 4656a4a Compare March 5, 2025 08:01
@servo-wpt-sync
Copy link
Copy Markdown
Collaborator

🤖 Opened new upstream WPT pull request (web-platform-tests/wpt#51142) with upstreamable changes.

@gterzian gterzian force-pushed the implement_stream_pipeto branch from 4b0cf7c to 5e3c26a Compare March 5, 2025 21:30
@servo-wpt-sync
Copy link
Copy Markdown
Collaborator

📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#51142).

@gterzian gterzian force-pushed the implement_stream_pipeto branch 2 times, most recently from 54640fc to 19c4e8d Compare March 6, 2025 07:44
@servo-wpt-sync
Copy link
Copy Markdown
Collaborator

📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#51142).

@servo-wpt-sync
Copy link
Copy Markdown
Collaborator

🤖 This change no longer contains upstreamable changes to WPT; closed existing upstream pull request (web-platform-tests/wpt#51142).

expected: CRASH

[then-interception.any.html]
expected: CRASH
Copy link
Copy Markdown
Member Author

@gterzian gterzian Mar 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two crashes are #35793

expected: ERROR

[pipe-through.any.worker.html]
expected: ERROR
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: this PR implements PipeTo, not PipeThrough(although PipeThrough seems like an easy follow-up, since it uses the same underlying mechanism, but it requires TransformStream, or at least part of that IDL).

[pipeThrough should stop after getting preventClose throws]
expected: FAIL

[pipeTo should stop after getting signal throws]
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

signal is AbortSignal, see #34866

@gterzian gterzian force-pushed the implement_stream_pipeto branch 2 times, most recently from 7ecf334 to 4a0f25f Compare March 6, 2025 08:27
@gterzian gterzian marked this pull request as ready for review March 6, 2025 08:48
@gterzian gterzian requested a review from Taym95 March 6, 2025 08:48
@gterzian gterzian force-pushed the implement_stream_pipeto branch 4 times, most recently from 1ef5ce8 to 3600935 Compare March 6, 2025 15:39
@gterzian
Copy link
Copy Markdown
Member Author

@Taym95 review ping on this one. I've just finished some clean-ups.

gterzian and others added 25 commits March 18, 2025 11:35
Signed-off-by: gterzian <[email protected]>
Signed-off-by: gterzian <[email protected]>
Signed-off-by: gterzian <[email protected]>
improve comment on result
add comment on backpressure

Signed-off-by: gterzian <[email protected]>
Signed-off-by: gterzian <[email protected]>
update test expectations

Signed-off-by: gterzian <[email protected]>
Signed-off-by: gterzian <[email protected]>
remove redundant logic in pending writes

Signed-off-by: gterzian <[email protected]>
Signed-off-by: gterzian <[email protected]>
Signed-off-by: gterzian <[email protected]>
Signed-off-by: gterzian <[email protected]>
Signed-off-by: gterzian <[email protected]>
Signed-off-by: Taym Haddadi <[email protected]>
Signed-off-by: Taym Haddadi <[email protected]>
@Taym95 Taym95 force-pushed the implement_stream_pipeto branch from bebc486 to d611717 Compare March 18, 2025 10:38
@Taym95 Taym95 added this pull request to the merge queue Mar 18, 2025
Merged via the queue into servo:main with commit 8d39d77 Mar 18, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants