@@ -6811,24 +6811,24 @@ A <dfn>network data</dfn> is a [=/struct=] with:
6811
6811
* [=struct/Item=] named <dfn for="network-data">type</dfn> , which is a <code> [=network.DataType=] </code> .
6812
6812
6813
6813
A <dfn for="network">collector</dfn> is a [=/struct=] with:
6814
- * [=struct/Item=] named <dfn for="network-collector">max encoded item size</dfn> , which is a js-uint;
6814
+ * [=struct/Item=] named <dfn for="network-collector">max encoded data size</dfn> , which is a js-uint;
6815
6815
* [=struct/item=] named <dfn for="network-collector">contexts</dfn> , which is a [=/list=] of [=navigable id=] ;
6816
6816
* [=struct/item=] named <dfn for="network-collector">data types</dfn> , which is a [=/list=] of <code> [=network.DataType=] </code> ;
6817
6817
* [=struct/item=] named <dfn for="network-collector">collector</dfn> , which is a <code> [=network.Collector=] </code> ;
6818
6818
* [=struct/item=] named <dfn for="network-collector">collector type</dfn> , which is a <code> [=network.CollectorType=] </code> ;
6819
6819
* [=struct/item=] named <dfn for="network-collector">user contexts</dfn> , which is a [=/list=] of <code> [=browser.UserContext=] </code> .
6820
6820
6821
- Note: [=network-collector/Max encoded item size=] defines the limit per item (response or request),
6821
+ Note: [=network-collector/Max encoded data size=] defines the limit per item (response or request),
6822
6822
and does not limit the size collected by the specific collector. The total size of all collected resources is
6823
- limited by [=max total collected size=] .
6823
+ limited by [=max total data size=] .
6824
6824
6825
6825
A [=BiDi session=] has <dfn>network collectors</dfn> which is a [=/map=] between
6826
6826
<code> [=network.Collector=] </code> and a [=network/collector=] . It is initially empty.
6827
6827
6828
6828
A [=remote end=] has <dfn>collected network data</dfn> which is a list of
6829
6829
[=network data=] . It is initially empty.
6830
6830
6831
- A [=remote end=] has a <dfn>max total collected size</dfn> which is a js-uint representing
6831
+ A [=remote end=] has a <dfn>max total data size</dfn> which is a js-uint representing
6832
6832
the size allocated to collect network data in [=collected network data=] . Its
6833
6833
value is implementation-defined.
6834
6834
@@ -6905,8 +6905,8 @@ To <dfn>get collected data</dfn> given |request id| and |data type|.
6905
6905
6906
6906
1. For |collected data| of [=collected network data=] :
6907
6907
6908
- 1. If |collected data|'s <code> request </code> is |request id| and
6909
- |collected data|'s <code> type </code> is |data type|, return |collected data|.
6908
+ 1. If |collected data|'s [=network-data/request=] is |request id| and
6909
+ |collected data|'s [=network-data/type=] is |data type|, return |collected data|.
6910
6910
6911
6911
1. Return null.
6912
6912
@@ -6919,7 +6919,7 @@ To <dfn>maybe abort network response body collection</dfn> given |request|:
6919
6919
6920
6920
1. If |collected data| is null, return.
6921
6921
6922
- 1. Set |collected data|'s <code> pending </code> to false.
6922
+ 1. Set |collected data|'s [=network-data/pending=] to false.
6923
6923
6924
6924
1. [=Resume=] with "<code> network data collected</code> " and (|request|'s [=request id=] , "response").
6925
6925
@@ -6939,7 +6939,7 @@ To <dfn>maybe collect network response body</dfn> given |request| and |response|
6939
6939
NOTE: This might happen if there are no collectors setup when the response is created,
6940
6940
and [=clone network response body=] does not clone the corresponding body.
6941
6941
6942
- 1. Set |collected data|'s <code> pending </code> to false.
6942
+ 1. Set |collected data|'s [=network-data/pending=] to false.
6943
6943
6944
6944
1. Let |navigable| be [=get navigable for request=] with |request|.
6945
6945
@@ -6997,22 +6997,23 @@ To <dfn>maybe collect network response body</dfn> given |request| and |response|
6997
6997
6998
6998
1. Let |processBodyError| be this step: Do nothing.
6999
6999
7000
- 1. [=Fully read=] |collected data|’s <code> cloned body</code> given |processBody| and |processBodyError|.
7000
+ 1. [=Fully read=] |collected data|’s [=network-data/ cloned body=] given |processBody| and |processBodyError|.
7001
7001
7002
7002
1. If |bytes| is not null:
7003
7003
7004
7004
1. For |collector| in |collectors|:
7005
7005
7006
- 1. If |size| is less than or equal to |collector|'s [=network-collector/max encoded item size=] ,
7007
- [=list/append=] |collector|'s [=network-collector/collector=] to |collected data|' s <code> collectors</code> .
7006
+ 1. If |size| is less than or equal to |collector|'s [=network-collector/max encoded data size=] ,
7007
+ [=list/append=] |collector|'s [=network-collector/collector=] to |collected data|' s
7008
+ [=network-data/collectors=] .
7008
7009
7009
- 1. If |collected data|'s <code> collectors </code> is not [=list/empty=] :
7010
+ 1. If |collected data|'s [=network-data/collectors=] is not [=list/empty=] :
7010
7011
7011
7012
1. [=Allocate size to record data=] given |size|.
7012
7013
7013
- 1. Set |collected data|'s <code> bytes </code> to |bytes|.
7014
+ 1. Set |collected data|'s [=network-data/bytes=] to |bytes|.
7014
7015
7015
- 1. Set |collected data|'s <code> size </code> to |size|.
7016
+ 1. Set |collected data|'s [=network-data/size=] to |size|.
7016
7017
7017
7018
1. Otherwise, [=list/remove=] |collected data| from [=collected network data=] .
7018
7019
@@ -7023,27 +7024,27 @@ To <dfn>maybe collect network response body</dfn> given |request| and |response|
7023
7024
<div algorithm>
7024
7025
To <dfn>allocate size to record data</dfn> given |size|:
7025
7026
7026
- 1. Let |available size| be [=max total collected size=] .
7027
+ 1. Let |available size| be [=max total data size=] .
7027
7028
7028
7029
1. Let |already collected data| be an empty list.
7029
7030
7030
7031
1. For each |collected data| in [=collected network data=] :
7031
7032
7032
- 1. If |collected data|'s <code> bytes </code> is not null:
7033
+ 1. If |collected data|'s [=network-data/bytes=] is not null:
7033
7034
7034
- 1. Decrease |available size| by |collected data|'s <code> size </code> .
7035
+ 1. Decrease |available size| by |collected data|'s [=network-data/size=] .
7035
7036
7036
7037
1. [=list/Append=] |collected data| to |already collected data|
7037
7038
7038
7039
1. If |size| is greater than |available size|:
7039
7040
7040
7041
1. For each |collected data| in |already collected data|:
7041
7042
7042
- 1. Increase |available size| by |collected data|'s <code> size </code> .
7043
+ 1. Increase |available size| by |collected data|'s [=network-data/size=] .
7043
7044
7044
- 1. Set |collected data|'s <code> bytes </code> field to null.
7045
+ 1. Set |collected data|'s [=network-data/bytes=] field to null.
7045
7046
7046
- 1. Set |collected data|'s <code> size </code> field to null.
7047
+ 1. Set |collected data|'s [=network-data/size=] field to null.
7047
7048
7048
7049
1. If |available size| is greater than or equal to |size|, return.
7049
7050
@@ -7052,11 +7053,11 @@ To <dfn>allocate size to record data</dfn> given |size|:
7052
7053
<div algorithm>
7053
7054
To <dfn>remove collector from data</dfn> given |collected data| and |collector id|:
7054
7055
7055
- 1. If |collected data|'s <code> collectors </code> [=list/contains=] |collector id|:
7056
+ 1. If |collected data|'s [=network-data/collectors=] [=list/contains=] |collector id|:
7056
7057
7057
- 1. [=list/Remove=] |collector id| from |collected data|'s <code> collectors </code> .
7058
+ 1. [=list/Remove=] |collector id| from |collected data|'s [=network-data/collectors=] .
7058
7059
7059
- 1. If |collected data|'s <code> collectors </code> is [=list/empty=] :
7060
+ 1. If |collected data|'s [=network-data/collectors=] is [=list/empty=] :
7060
7061
7061
7062
1. [=list/Remove=] |collected data| from [=collected network data=] .
7062
7063
@@ -8490,16 +8491,16 @@ The [=remote end steps=] given |session| and |command parameters| are:
8490
8491
1. Let |data types| be [=set/create|create a set=] with
8491
8492
|command parameters|["<code>dataTypes</code>"] .
8492
8493
8493
- 1. Let |max encoded item size| be |command parameters|
8494
+ 1. Let |max encoded data size| be |command parameters|
8494
8495
["<code>maxEncodedDataSize</code>"] .
8495
8496
8496
8497
Note: The <code> maxEncodedDataSize</code> parameter represents
8497
- [=network-collector/max encoded item size=] and limits the size of each request collected by the
8498
+ [=network-collector/max encoded data size=] and limits the size of each request collected by the
8498
8499
given collector, not the total collector's collected size.
8499
8500
8500
8501
Note: Different implementations might support different encodings, which means the
8501
8502
encoded size might be different between browsers. Therefore, for the same data collector
8502
- configuration, some network data might fit the [=network-collector/max encoded item size=] only
8503
+ configuration, some network data might fit the [=network-collector/max encoded data size=] only
8503
8504
in some implementations.
8504
8505
8505
8506
1. Let |collector type| be |command parameters|
@@ -8514,8 +8515,8 @@ The [=remote end steps=] given |session| and |command parameters| are:
8514
8515
1. If |input user context ids| is not empty and |input context ids| is not
8515
8516
empty, return [=error=] with [=error code=] [=invalid argument=] .
8516
8517
8517
- 1. If |max encoded item size| is 0 or |max encoded item size| is greater than
8518
- [=max total collected size=] , return [=error=] with [=error code=] [=invalid argument=] .
8518
+ 1. If |max encoded data size| is 0 or |max encoded data size| is greater than
8519
+ [=max total data size=] , return [=error=] with [=error code=] [=invalid argument=] .
8519
8520
8520
8521
1. If |input context ids| is not [=set/empty=] :
8521
8522
@@ -8536,7 +8537,7 @@ The [=remote end steps=] given |session| and |command parameters| are:
8536
8537
1. If |user context| is null, return [=error=] with [=error code=] [=invalid argument=] .
8537
8538
8538
8539
1. Let |collector| be a [=network/collector=] with
8539
- [=network-collector/max encoded item size=] field set to |max encoded item size|,
8540
+ [=network-collector/max encoded data size=] field set to |max encoded data size|,
8540
8541
[=network-collector/data types=] field set to |data types|,
8541
8542
[=network-collector/collector=] field set to |collector id|,
8542
8543
[=network-collector/collector type=] field set to |collector type|,
@@ -9065,16 +9066,16 @@ The [=remote end steps=] given |session| and |command parameters| are:
9065
9066
9066
9067
1. Return [=error=] with [=error code=] [=no such network data=] .
9067
9068
9068
- 1. If |collected data|'s <code> pending </code> is true:
9069
+ 1. If |collected data|'s [=network-data/pending=] is true:
9069
9070
9070
9071
1. [=Await=] with "network data collected" and (|request id|, |data type|).
9071
9072
9072
- 1. If |collector id| is not null and if |collected data|'s <code> collectors </code>
9073
+ 1. If |collector id| is not null and if |collected data|'s [=network-data/collectors=]
9073
9074
does not [=list/contain=] |collector id|:
9074
9075
9075
9076
1. Return [=error=] with [=error code=] [=no such network data=] .
9076
9077
9077
- 1. Let |bytes| be |collected data|'s <code> bytes </code> .
9078
+ 1. Let |bytes| be |collected data|'s [=network-data/bytes=] .
9078
9079
9079
9080
1. If |bytes| is null,
9080
9081
0 commit comments