Skip to content

Commit 8c0f013

Browse files
authored
Report ResourceTiming for video posters and image inputs
Part of #6542.
1 parent cf367a9 commit 8c0f013

File tree

1 file changed

+29
-15
lines changed

1 file changed

+29
-15
lines changed

source

Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -32850,8 +32850,13 @@ interface <dfn interface>HTMLVideoElement</dfn> : <span>HTMLMediaElement</span>
3285032850
data-x="concept-request-credentials-mode">credentials mode</span> is "<code
3285132851
data-x="">include</code>", and whose <span>use-URL-credentials flag</span> is set.
3285232852

32853-
<!--FETCH--><li><p><span data-x="concept-fetch">Fetch</span> <var>request</var>. This must
32854-
<span>delay the load event</span> of the element's <span>node document</span>.</p></li>
32853+
<!--FETCH--><li><p><span data-x="concept-fetch">Fetch</span> <var>request</var>, with
32854+
<i data-x="processResponseEndOfBody">processResponseEndOfBody</i> given
32855+
<span data-x="concept-response">response</span> <var>res</var> set to
32856+
<span>finalize and report timing</span> with <var>res</var>, the element's
32857+
<span>node document</span>'s <span>relevant global object</span>, and
32858+
"<code data-x="">video</code>". This must <span>delay the load event</span> of the element's
32859+
<span>node document</span>.</p></li>
3285532860

3285632861
<!-- could define how to sniff for an image here -->
3285732862

@@ -48805,7 +48810,28 @@ ldh-str = &lt; as defined in <a href="https://tools.ietf.org/html/rfc1034#
4880548810
data-x="concept-request-credentials-mode">credentials mode</span> is "<code
4880648811
data-x="">include</code>", and whose <span>use-URL-credentials flag</span> is set.</p></li>
4880748812

48808-
<!--FETCH--><li><p><span data-x="concept-fetch">Fetch</span> <var>request</var>.</p></li>
48813+
<!--FETCH--><li>
48814+
<p><span data-x="concept-fetch">Fetch</span> <var>request</var>, with
48815+
<i data-x="processResponseEndOfBody">processResponseEndOfBody</i> set to the following steps
48816+
given <span data-x="concept-response">response</span> <var>response</var>:</p>
48817+
48818+
<ol>
48819+
<li><p><span>Finalize and report timing</span> with <var>response</var>, the <code>input</code>
48820+
element's <span>node document</span>'s <span>relevant global object</span>, and
48821+
"<code data-x="">input</code>".</p></li>
48822+
48823+
<li><p>If the download was successful and the image is
48824+
<i data-x="input-img-available">available</i>, <span>queue an element task</span> on the
48825+
<span>user interaction task source</span> given the <code>input</code> element to
48826+
<span data-x="concept-event-fire">fire an event</span> named
48827+
<code data-x="event-load">load</code> at the <code>input</code> element; and otherwise, if the
48828+
fetching process fails without a response from the remote server, or completes but the image is
48829+
not a valid or supported image, <span>queue an element task</span> on the <span>user interaction
48830+
task source</span> given the <code>input</code> element to
48831+
<span data-x="concept-event-fire">fire an event</span> named
48832+
<code data-x="event-error">error</code> on the <code>input</code> element.</p></li>
48833+
</ol>
48834+
</li>
4880948835
</ol>
4881048836

4881148837
<!-- same text in <img> section and similar text elsewhere -->
@@ -48831,18 +48857,6 @@ ldh-str = &lt; as defined in <a href="https://tools.ietf.org/html/rfc1034#
4883148857
agents must not run executable code embedded in the image resource. User agents must only display
4883248858
the first page of a multipage resource. User agents must not allow the resource to act in an
4883348859
interactive fashion, but should honor any animation in the resource.</p>
48834-
48835-
<p>The <span data-x="concept-task">task</span> that is <span data-x="queue a task">queued</span>
48836-
by the <span>networking task source</span> once the resource has been fetched, must, if the
48837-
download was successful and the image is <i data-x="input-img-available">available</i>,
48838-
<span>queue an element task</span> on the <span>user interaction task source</span> given the
48839-
<code>input</code> element to <span data-x="concept-event-fire">fire an event</span> named <code
48840-
data-x="event-load">load</code> at the <code>input</code> element; and otherwise, if the fetching
48841-
process fails without a response from the remote server, or completes but the image is not a valid
48842-
or supported image, <span>queue an element task</span> on the <span>user interaction task
48843-
source</span> given the <code>input</code> element to <span data-x="concept-event-fire">fire an
48844-
event</span> named <code data-x="event-error">error</code> on the <code>input</code> element.</p>
48845-
4884648860
<hr>
4884748861

4884848862
</div>

0 commit comments

Comments
 (0)