Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editorial: pass signal to Request/create #1678

Merged
merged 1 commit into from
May 17, 2023
Merged

Conversation

shaseley
Copy link
Contributor

@shaseley shaseley commented May 3, 2023

@shaseley shaseley marked this pull request as ready for review May 4, 2023 22:43
@shaseley
Copy link
Contributor Author

shaseley commented May 4, 2023

This can probably be reviewed now, but shouldn't land until whatwg/fetch#1646 lands.

cc: @annevk @jakearchibald

@annevk annevk mentioned this pull request May 5, 2023
4 tasks
Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

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

Looks good. This does mean another PR is needed to remove "signal abort" usage, but that's fine and probably better to separate out anyway.

Edit: tentative plan is to land this Tuesday.

annevk pushed a commit to whatwg/dom that referenced this pull request May 17, 2023
- This implements an optimization that puts all children on
  non-dependent signals (i.e., those associated with a controller).
  This allows "intermediate" nodes (e.g., B in A follows B follows C)
  to be garbage collected if they are being kept alive to propagate
  aborts.

- This removes the follow algorithm, so callsites will need to be
  updated.

- The "create a composite abort signal" algorithm takes an interface so
  that TaskSignal.any() can easily hook into it, but create a 
  TaskSignal.

- Some algorithms that invoke "follow" create an AbortSignal in a 
  particular realm. This enables doing that, but borrows some language 
  from elsewhere in the spec w.r.t. doing the default thing. Neither of
  the other two static members specify a realm.

Follow-up PRs:

- whatwg/fetch#1646
- w3c/ServiceWorker#1678
- whatwg/streams#1277

This also sets the stage to make AbortSignal's "signal abort" fully 
internal. #1194 tracks the remainder.

Tests: web-platform-tests/wpt#37434 and web-platform-tests/wpt#39785.

Fixes #920.
annevk added a commit to whatwg/fetch that referenced this pull request May 17, 2023
annevk added a commit to whatwg/fetch that referenced this pull request May 17, 2023
@annevk annevk merged commit e8e2b81 into w3c:main May 17, 2023
@shaseley shaseley deleted the abortsignal-any branch May 24, 2023 22:02
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.

2 participants