From 789e2235f4ef177050e2a66bf605ef9df70f0794 Mon Sep 17 00:00:00 2001 From: Philip Chimento <philip.chimento@gmail.com> Date: Wed, 7 Feb 2024 10:45:15 -0800 Subject: [PATCH] Expose AbortSignal.timeout on all globals Delete the Exposed attribute from AbortSignal.timeout, letting it inherit [Exposed=*] from AbortSignal. Cf. https://github.com/whatwg/html/pull/9893 where other timers are being exposed in ShadowRealm global contexts. --- dom.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom.bs b/dom.bs index 182f246d0..f3f3ba2d7 100644 --- a/dom.bs +++ b/dom.bs @@ -1847,7 +1847,7 @@ to <a for=AbortController>signal abort</a> on <a>this</a> with <var>reason</var> [Exposed=*] interface AbortSignal : EventTarget { [NewObject] static AbortSignal abort(optional any reason); - [Exposed=(Window,Worker), NewObject] static AbortSignal timeout([EnforceRange] unsigned long long milliseconds); + [NewObject] static AbortSignal timeout([EnforceRange] unsigned long long milliseconds); [NewObject] static AbortSignal _any(sequence<AbortSignal> signals); readonly attribute boolean aborted;