diff --git a/index.bs b/index.bs index ed6e19c7..41b4d359 100644 --- a/index.bs +++ b/index.bs @@ -6876,11 +6876,40 @@ To match collector for navigable given |collector| and |navigable|: +
pending
to false.
@@ -6947,7 +7009,7 @@ To maybe collect network response body given |request| and |response|
1. [=list/Remove=] |collected data| from [=collected network data=].
- 1. [=Resume=] with "network data collected
" and (|request|'s [=request id=], "response").
+ 1. [=Resume=] with "network data collected
" and (|request|'s [=request id=], |data type|).
1. Return.
@@ -6963,7 +7025,7 @@ To maybe collect network response body given |request| and |response|
1. For each |collector| in |session|'s [=network collectors=]:
- 1. If |collector|'s [=network-collector/data types=] [=list/contains=] "response" and if
+ 1. If |collector|'s [=network-collector/data types=] [=list/contains=] |data type| and if
[=match collector for navigable=] with |collector| and |top-level navigable|:
1. [=list/Append=] |collector| to |collectors|.
@@ -6972,28 +7034,19 @@ To maybe collect network response body given |request| and |response|
1. [=list/Remove=] |collected data| from [=collected network data=].
- 1. [=Resume=] with "network data collected
" and (|request|'s [=request id=], "response").
+ 1. [=Resume=] with "network data collected
" and (|request|'s [=request id=], |data type|).
1. Return.
1. Let |bytes| be null.
-1. Let |size| be null.
-
1. Let |processBody| given |nullOrBytes| be this step:
1. If |nullOrBytes| is not null:
1. Set |bytes| to [=serialize protocol bytes=] with |nullOrBytes|.
- 1. Set |size| to |response|'s [=response body info=]'s [=encoded size=].
-
- Note: There is a discrepancy between the fact that the bytes retrieved from the
- fetch stream correspond to the decoded data, but the encoded (network) size is
- used in order to calculate size limits. Implementations might decide to use a storage
- model such that it uses less size than storing the decoded data, as long as the data
- returned to clients in getData is identical to the decoded data. The potential
- tradeoff between storage and performance is up to the implementation.
+ 1. If |size| is null, set |size| to |bytes|' [=byte sequence/length=].
1. Let |processBodyError| be this step: Do nothing.
@@ -7016,7 +7069,7 @@ To maybe collect network response body given |request| and |response|
1. Otherwise, [=list/remove=] |collected data| from [=collected network data=].
-1. [=Resume=] with "network data collected
" and (|request|'s [=request id=], "response").
+1. [=Resume=] with "network data collected
" and (|request|'s [=request id=], |data type|).
-network.DataType = "response" +network.DataType = "request" / "response"The
network.DataType
type represents the different types of network data
@@ -9666,6 +9719,8 @@ request sent steps given |request|:
are assumed to be valid at this stage; any error accessing the proxy will
be reported as a network error when handling the request.
+1. [=Maybe collect network request body=] with |request|.
+
1. If [=before request sent map=] does not contain |request|, set [=before
request sent map=][|request|] to a new set.