[whatwg/dom] Limit AbortSignal.timeout to Window and Worker (PR #1055)

Worklets are designed with minimal event loops such that they need only run a single task and corresponding microtasks, making APIs that schedule additional tasks unsuitable for worklets. This restricts the availability of AbortSignal.timeout to Window and Worker since the API schedules a task to implement the timeout.

Closes #1054.

<!--
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.
-->

- [ ] 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:
   * …
- [ ] [Implementation bugs](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) are filed:
   * Chrome: …
   * Firefox: …
   * Safari: …
   * Deno (only for aborting and events): …
   * Node.js (only for aborting and events): …

(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/1055


-- Commit Summary --

  * Limit AbortSignal.timeout to Window and Worker

-- File Changes --

    M dom.bs (2)

-- Patch Links --

https://github.com/whatwg/dom/pull/1055.patch

https://github.com/whatwg/dom/pull/1055.diff


-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/1055

You are receiving this because you are subscribed to this thread.

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

Received on Friday, 4 February 2022 20:48:56 UTC