From 4fa3194a9da65a01a83ee690ed18642314a9e052 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 | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/fetch.bs b/fetch.bs index 7e24ae7c3..393d9dc3e 100644 --- a/fetch.bs +++ b/fetch.bs @@ -109,6 +109,12 @@ urlPrefix:https://tc39.es/ecma262/#;type:dfn;spec:ecma-262 "href": "https://datatracker.ietf.org/doc/html/draft-ietf-dnsop-svcb-https", "publisher": "IETF", "title": "Service binding and parameter specification via the DNS (DNS SVCB and HTTPS RRs)" + }, + "WEBDRIVER-BIDI": { + "authors": [], + "href": "https://w3c.github.io/webdriver-bidi/", + "publisher": "W3C", + "title": "WebDriver BiDi" } } @@ -2072,6 +2078,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. @@ -2113,6 +2124,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 [=request/cloned=], +the created request gets a unique [=request id=]. [[!WEBDRIVER-BIDI]] +


A subresource request is a request @@ -4712,6 +4730,11 @@ steps: URL, fetchParams's 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.

  • @@ -4967,6 +4990,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 @@ -5483,6 +5513,10 @@ run these steps:

    This intentionally does not depend on httpRequest's credentials mode. + +

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

  • Set httpCache to the result of determining the HTTP cache partition, given httpRequest. @@ -5578,6 +5612,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.

  • @@ -5842,6 +5878,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.