From 99ce9a6763a92925373dd5af4ba39c078191bdc1 Mon Sep 17 00:00:00 2001 From: Noam Rosenthal Date: Thu, 17 Feb 2022 21:13:04 +0200 Subject: [PATCH] Report ResourceTiming for video posters and image inputs Part of #6542. --- source | 44 +++++++++++++++++++++++++++++--------------- 1 file changed, 29 insertions(+), 15 deletions(-) diff --git a/source b/source index 0f8be7b749d..903ec2b0cad 100644 --- a/source +++ b/source @@ -32853,8 +32853,13 @@ interface HTMLVideoElement : HTMLMediaElement data-x="concept-request-credentials-mode">credentials mode is "include", and whose use-URL-credentials flag is set. -
  • Fetch request. This must - delay the load event of the element's node document.

  • +
  • Fetch request, with + processResponseEndOfBody given + response res set to + finalize and report timing with res, the element's + node document's relevant global object, and + "video". This must delay the load event of the element's + node document.

  • @@ -48808,7 +48813,28 @@ ldh-str = < as defined in credentials mode is "include", and whose use-URL-credentials flag is set.

    -
  • Fetch request.

  • +
  • +

    Fetch request, with + processResponseEndOfBody set to the following steps + given response response:

    + +
      +
    1. Finalize and report timing with response, the input + element's node document's relevant global object, and + "input".

    2. + +
    3. If the download was successful and the image is + available, queue an element task on the + user interaction task source given the input element to + fire an event named + load at the input element; and otherwise, if the + fetching process fails without a response from the remote server, or completes but the image is + not a valid or supported image, queue an element task on the user interaction + task source given the input element to + fire an event named + error on the input element.

    4. +
    +
  • @@ -48834,18 +48860,6 @@ ldh-str = < as defined in
    task that is queued - by the networking task source once the resource has been fetched, must, if the - download was successful and the image is available, - queue an element task on the user interaction task source given the - input element to fire an event named load at the input element; and otherwise, if the fetching - process fails without a response from the remote server, or completes but the image is not a valid - or supported image, queue an element task on the user interaction task - source given the input element to fire an - event named error on the input element.

    -