From 789e2235f4ef177050e2a66bf605ef9df70f0794 Mon Sep 17 00:00:00 2001 From: Philip Chimento 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 182f246d..f3f3ba2d 100644 --- a/dom.bs +++ b/dom.bs @@ -1847,7 +1847,7 @@ to signal abort on this with reason [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;