From 7884a67892bb3792485f66b76ae035557f0e9ff7 Mon Sep 17 00:00:00 2001 From: James Graham Date: Fri, 18 Nov 2022 10:20:40 +0000 Subject: [PATCH] Add WebDriver BiDi network request logging --- fetch.bs | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/fetch.bs b/fetch.bs index 92f706325..5800b0b20 100644 --- a/fetch.bs +++ b/fetch.bs @@ -2083,6 +2083,11 @@ Unless stated otherwise, it is false.

This is for exclusive use by HTML's navigate algorithm. [[!HTML]] +

A request has an associated navigation id. +Unless stated otherwise, it is null. + +

This is for exclusive use by HTML's navigate algorithm. [[!HTML]] +

A request has an associated boolean render-blocking. Unless stated otherwise, it is false. @@ -2124,6 +2129,13 @@ otherwise, it is unset. done flag, and timing allow failed flag are used as bookkeeping details by the fetch algorithm. +

A request has an associated +request id which is a unique +string automatically set when the request is created. + +Note: the [=request id=] is used by WebDriver-BiDi. When a request is [=cloned=], +the created request gets a unique [=request id=]. [[!WEBDRIVER-BIDI]] +


A subresource request is a request @@ -4684,6 +4696,11 @@ steps: URL, request's initiator type, global, cacheState, bodyInfo, and responseStatus. + +

  • If response is a network error, run + the WebDriver BiDi fetch error steps with request. Otherwise + run the WebDriver BiDi response completed steps with + request and response.

  • @@ -4934,6 +4951,13 @@ these steps: filtered response, and to response's internal response otherwise. + +
  • Run the [=WebDriver BiDi response started=] steps with + request and response. +

  • If one of the following is true @@ -5338,6 +5362,10 @@ run these steps: append (`Cache-Control`, `max-age=0`) to httpRequest's header list. + +

  • Run the WebDriver BiDi before request sent steps with request. +

  • If httpRequest's cache mode is "no-store" or "reload", then: @@ -5540,6 +5568,8 @@ run these steps:

  • If aborted, then return the appropriate network error for fetchParams. +

  • If response is not null, run the WebDriver BiDi response + started steps with request and response.

  • @@ -5803,6 +5833,9 @@ optional boolean forceNewConnection (default false), run these steps:
  • Wait until all the HTTP response headers are transmitted. +

  • Run the [=WebDriver BiDi response started=] steps with + |request| and |response|. +

  • Let status be the HTTP response's status code.