[whatwg/dom] AsyncContext proposal integration (PR #1521)

This patch includes the three changes needed in DOM to work with AsyncContext and https://github.com/whatwg/html/pull/13063:
- support to pass a context to the "fire an event" logic
- the `[PropagatesAsyncContextToEvents]` WebIDL extended attribute
- propagation for `AbortSignal.timeout()`, which needs to propagate its context to the `abort` event

I originally thought that we'd also need to handle the custom elements logic that is here in DOM (e.g. as part of the `move`) steps, but the changes in HTML are enough also for the algorithms defined in DOM.

---
<!--
Thank you for contributing to the DOM Standard! Please describe the change you are making and complete the checklist below if your change is not editorial.

When you submit this PR, and each time you edit this comment (including checking a checkbox through the UI!), PR Preview will run and update it. As such make any edits in one go and only after PR Preview has run.

If you think your PR is ready to land, please double-check that the build is passing and the checklist is complete before pinging.
-->

- [ ] At least two implementers are interested (and none opposed):
   * …
   * …
- [ ] [Tests](https://github.com/web-platform-tests/wpt) are written and can be reviewed and commented upon at:
   * … <!-- If these tests are tentative, link a PR to make them non-tentative. -->
- [ ] [Implementation bugs](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) are filed:
   * Chromium: …
   * Gecko: …
   * WebKit: …
   * Deno (only for aborting and events): …
   * Node.js (only for aborting and events): …
- [ ] [MDN issue](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) is filed: …
- [ ] The top of this comment includes a [clear commit message](https://github.com/whatwg/meta/blob/main/COMMITTING.md) to use. <!-- If you created this PR from a single commit, Github copied its message. Otherwise, you need to add a commit message yourself. -->

(See [WHATWG Working Mode: Changes](https://whatwg.org/working-mode#changes) for more details.)

You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/dom/pull/1521

-- Commit Summary --

  * Allow passing an Async Context Mapping to "fire an event"
  * Add the [PropagatesAsyncContextToEvents] extended attribute
  * Propagate AsyncContext from AbortSignal.timeout() to its abort event

-- File Changes --

    M dom.bs (156)

-- Patch Links --

https://github.com/whatwg/dom/pull/1521.patch
https://github.com/whatwg/dom/pull/1521.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/1521
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/pull/1521@github.com>

Received on Tuesday, 3 November 2026 16:58:48 UTC