Re: [whatwg/dom] Introduce AbortSignal.timeout() (PR #1032)

@annevk commented on this pull request.

The main thing I'm worried about for Firefox is that I think @farre or @smaug---- at some point mentioned to me that the clamping logic sits pretty deep in our timeout code. And beyond that, I worry that if we don't enforce clamping for these new timer mechanisms we'll eventually end up back there due to misbehaving websites. But perhaps if no browser budges it's feasible to hold the door.

> @@ -1831,6 +1837,27 @@ are:
  <li>Return <var>signal</var>.
 </ol>
 
+<p>The static <dfn method for=AbortSignal><code>timeout(<var>milliseconds</var>)</code></dfn> method
+steps are:
+
+<ol>
+ <li><p>Let <var>signal</var> be a new {{AbortSignal}} object.
+
+ <li><p>Let <var>global</var> be <var>signal</var>'s <a>relevant global object</a>.
+
+ <li>
+  <p><a>Wait for a timeout</a> given <var>global</var>, "<code>AbortSignal-timeout</code>",

Needs to reference the new algorithm.

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

Received on Wednesday, 24 November 2021 08:18:25 UTC