Skip to content

Commit 20b8b88

Browse files
authored
Allow maximum safe integer for timeout values (#1548)
1 parent afc3d5d commit 20b8b88

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

index.html

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2628,8 +2628,8 @@ <h2>Timeouts</h2>
26282628
Let <var>script duration</var> be the value of property "<code>script</code>".
26292629

26302630
<li><p>
2631-
If <var>script duration</var> is a number and less than 0 or greater than 2<sup>16</sup> – 1,
2632-
or it is not <a><code>null</code></a>,
2631+
If <var>script duration</var> is a number and less than 0 or greater than
2632+
<a>maximum safe integer</a>, or it is not <a><code>null</code></a>,
26332633
return <a>error</a> with <a>error code</a> <a>invalid argument</a>.
26342634

26352635
<li><p>
@@ -2644,8 +2644,9 @@ <h2>Timeouts</h2>
26442644
Let <var>page load duration</var> be the value of property "<code>pageLoad</code>".
26452645

26462646
<li><p>
2647-
If <var>page load duration</var> is less than 0 or greater than 2<sup>16</sup> – 1,
2648-
return <a>error</a> with <a>error code</a> <a>invalid argument</a>.
2647+
If <var>page load duration</var> is less than 0 or greater than
2648+
<a>maximum safe integer</a>, return <a>error</a> with
2649+
<a>error code</a> <a>invalid argument</a>.
26492650

26502651
<li><p>
26512652
Set <var>timeouts</var>’s <a>page load timeout</a> to <var>page load duration</var>.
@@ -2659,8 +2660,9 @@ <h2>Timeouts</h2>
26592660
Let <var>implicit duration</var> be the value of property "<code>implicit</code>".
26602661

26612662
<li><p>
2662-
If <var>implicit duration</var> is less than 0 or greater than 2<sup>16</sup> – 1,
2663-
return <a>error</a> with <a>error code</a> <a>invalid argument</a>.
2663+
If <var>implicit duration</var> is less than 0 or greater than
2664+
<a>maximum safe integer</a>, return <a>error</a> with
2665+
<a>error code</a> <a>invalid argument</a>.
26642666

26652667
<li><p>
26662668
Set <var>timeouts</var>’s <a>implicit wait timeout</a> to <var>implicit duration</var>.
@@ -7118,7 +7120,7 @@ <h4 id=input-source-state>State</h4>
71187120
<tr>
71197121
<td>"<code>wheel</code>"
71207122
<td><a>wheel input state</a>
7121-
</tr>
7123+
</tr>
71227124
</table>
71237125

71247126
<p>A <a>null input source</a>’s <a>input source state</a> is
@@ -7154,7 +7156,7 @@ <h4 id=input-source-state>State</h4>
71547156
a <a>pointer input state</a> object with <code>subtype</code> set
71557157
to <var>subtype</var>, <code>pressed</code> set to an empty set and
71567158
both <code>x</code> and <code>y</code> set to <code>0</code>.
7157-
7159+
71587160
<p>A <a>wheel input source</a>’s <a>input source state</a> is a
71597161
<dfn>wheel input state</dfn> object. This is always an empty object.
71607162

@@ -7406,7 +7408,7 @@ <h3>Processing actions</h3>
74067408
<dd>Create a new <a>pointer input source</a>. Let the
74077409
new <a>input source</a>’s <a>pointer type</a> be set to the value
74087410
of <var>parameters</var>’s <code>pointerType</code> property.
7409-
7411+
74107412
<dt>"<code>wheel</code>"
74117413
<dd>Create a new <a>wheel input source</a>.
74127414
</dl>
@@ -7980,7 +7982,7 @@ <h3>Dispatching actions</h3>
79807982
<tr><td>"<code>pointer</code>" <td>"<code>pointerMove</code> <td><a>Dispatch a pointerMove action</a>
79817983
<tr><td>"<code>pointer</code>" <td>"<code>pointerCancel</code> <td><a>Dispatch a pointerCancel action</a>
79827984
<tr><td>"<code>wheel</code>" <td>"<code>pause</code>" <td><a>Dispatch a pause action</a>
7983-
<tr><td>"<code>wheel</code>" <td>"<code>scroll</code>" <td><a>Dispatch a scroll action</a>
7985+
<tr><td>"<code>wheel</code>" <td>"<code>scroll</code>" <td><a>Dispatch a scroll action</a>
79847986
</table>
79857987

79867988
<li><a>Try</a> to run <var>algorithm</var> with arguments
@@ -8804,7 +8806,7 @@ <h4>Wheel actions</h4>
88048806
the viewport in <a>CSS pixels</a>, then
88058807
return <a>error</a> with error code <a>move target out of
88068808
bounds</a>.
8807-
8809+
88088810
<li><p>Let <var>delta x</var> be equal to the <code>deltaX</code>
88098811
property of <var>action object</var>.
88108812

@@ -8866,7 +8868,7 @@ <h4>Wheel actions</h4>
88668868
and <var>delta y</var> equal an approximation to
88678869
<var>duration ratio</var> &times; <var>target delta y</var> -
88688870
<var>current delta y</var>.
8869-
8871+
88708872
<li><p>If <var>delta x</var> is not equal to <var>0</var> or
88718873
<var>delta y</var> is not equal to <var>0</var>,
88728874
run the following steps:
@@ -8878,11 +8880,11 @@ <h4>Wheel actions</h4>
88788880
viewport y coordinate <var>y</var>, deltaX value <var>delta x</var>,
88798881
deltaY value <var>delta y</var>, in accordance with the
88808882
requirements of [[UI-EVENTS]].
8881-
8883+
88828884
<li><p>Let <code>current delta x</code> property
88838885
equal <var>delta x</var> + <var>current delta x</var> and
88848886
<code>current delta y</code> property equal
8885-
<var>delta y</var> + <var>current delta y</var>.
8887+
<var>delta y</var> + <var>current delta y</var>.
88868888
</ol>
88878889

88888890
<li><p>If <var>last</var> is true, return.

0 commit comments

Comments
 (0)