Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,8 @@ <h2>The <dfn>IdleDeadline</dfn> interface</h2>
"Privacy and Security" section of [[HR-TIME]]. This value is calculated
by performing the following steps:</p>
<ol>
<li>Let <var>now</var> be a {{DOMHighResTimeStamp}} representing
<a>current high resolution time</a> in milliseconds.</li>
<li>Let <var>now</var> be the [=coarsened shared current time=] given
[=this=]'s [=relevant settings object=]'s [=environment settings object/cross-origin isolated capability=].</li>
<li>Let <var>deadline</var> be the result of calling {{IdleDeadline}}'s <a>get deadline time</a> algorithm.</li>
<li>Let <var>timeRemaining</var> be <var>deadline</var> -
<var>now</var>.</li>
Expand Down Expand Up @@ -466,7 +466,8 @@ <h2>Invoke idle callbacks algorithm</h2>
<ol>
<li>If the user-agent believes it should end the idle period early due
to newly scheduled high-priority work, return from the algorithm.
<li>Let <var>now</var> be the current time.</li>
<li>Let <var>now</var> be the [=coarsened shared current time=] given
<var>window</var>'s [=relevant settings object=]'s [=environment settings object/cross-origin isolated capability=].</li>
<li>If <var>now</var> is less than the result of calling <var>getDeadline</var> and the
<var>window</var>'s <a>list of runnable idle callbacks</a> is not empty:
<ol>
Expand Down Expand Up @@ -502,7 +503,8 @@ <h2>Invoke idle callback timeout algorithm</h2>
<li>Remove <var>callback</var> from both <var>window</var>'s <a>list
of idle request callbacks</a> and the <a>list of runnable idle
callbacks</a>.</var></li>
<li>Let <var>now</var> be the current time.</li>
<li>Let <var>now</var> be the [=coarsened shared current time=] given
<var>window</var>'s [=relevant settings object=]'s [=environment settings object/cross-origin isolated capability=].</li>
<li>Let <var>deadlineArg</var> be a new <a>IdleDeadline</a>.
Set the <a>get deadline time</a> algorithm associated with <var>deadlineArg</var> to
an algorithm returning <var>now</var> and set the <a>timeout</a> associated with
Expand Down