You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. If |collector|'s [=network-collector/user contexts=] [=list/contains=] |user context|'s
6871
+
[=user context id=], return true.
6867
6872
6868
6873
1. Otherwise, return false.
6869
6874
@@ -6880,14 +6885,14 @@ Note: This hook is intended to be triggered by the fetch spec when the response
6880
6885
6881
6886
1. If |session|'s [=network collectors=] is not [=list/empty=]:
6882
6887
6883
-
1. Let |collected data| be a struct with
6884
-
<code>bytes</code> field set to null,
6885
-
<code>cloned body</code> field set to [=body/clone=]with |response body|,
6886
-
<code>collectors</code> field set to an empty list,
6887
-
<code>pending</code> field set to true,
6888
-
<code>request</code> field set to |request|'s [=request id=],
6889
-
<code>size</code> field set to null,
6890
-
<code>type</code> field set to "response".
6888
+
1. Let |collected data| be a [=network data=] with
6889
+
[=network-data/bytes=] set to null,
6890
+
[=network-data/cloned body=]set to [=body/clone=]of |response body|,
6891
+
[=network-data/collectors=] set to an empty list,
6892
+
[=network-data/pending=] set to true,
6893
+
[=network-data/request=] set to |request|'s [=request id=],
6894
+
[=network-data/size=] set to null,
6895
+
[=network-data/type=] set to "response".
6891
6896
6892
6897
1. [=list/Append=] |collected data| to [=collected network data=].
6893
6898
@@ -6958,7 +6963,8 @@ To <dfn>maybe collect network response body</dfn> given |request| and |response|
6958
6963
6959
6964
1. For each |collector| in |session|'s [=network collectors=]:
6960
6965
6961
-
1. If |collector|'s <code>data types</code>[=list/contains=] "response" and if [=match collector for navigable=] with |collector| and |top-level navigable|:
6966
+
1. If |collector|'s [=network-collector/data types=][=list/contains=] "response" and if
6967
+
[=match collector for navigable=] with |collector| and |top-level navigable|:
6962
6968
6963
6969
1. [=list/Append=] |collector| to |collectors|.
6964
6970
@@ -6997,8 +7003,8 @@ To <dfn>maybe collect network response body</dfn> given |request| and |response|
6997
7003
6998
7004
1. For |collector| in |collectors|:
6999
7005
7000
-
1. If |size| is less than or equal to |collector|'s <code>max encoded data size</code>,
7001
-
[=list/append=] |collector|'s <code>collector</code> to |collected data|'s <code>collectors</code>.
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>.
7002
7008
7003
7009
1. If |collected data|'s <code>collectors</code> is not [=list/empty=]:
7004
7010
@@ -7017,7 +7023,7 @@ To <dfn>maybe collect network response body</dfn> given |request| and |response|
7017
7023
<div algorithm>
7018
7024
To <dfn>allocate size to record data</dfn> given |size|:
7019
7025
7020
-
1. Let |available size| be [=max total data size=].
7026
+
1. Let |available size| be [=max total collected size=].
7021
7027
7022
7028
1. Let |already collected data| be an empty list.
7023
7029
@@ -7355,15 +7361,15 @@ network.Base64Value = {
7355
7361
}
7356
7362
</pre>
7357
7363
7358
-
The <code>network.BytesValue</code> type represents binary data sent over the
7364
+
The <code><dfn>network.BytesValue</dfn></code> type represents binary data sent over the
7359
7365
network. Valid UTF-8 is represented with the <code>network.StringValue</code>
7360
7366
type, any other data is represented in Base64-encoded form as
7361
7367
<code>network.Base64Value</code>.
7362
7368
7363
7369
<div algorithm>
7364
7370
To <dfn>deserialize protocol bytes</dfn> given |protocol bytes|:
7365
7371
7366
-
Note: this takes bytes encoded as a <code>network.BytesValue</code> and returns
7372
+
Note: this takes bytes encoded as a <code>[=network.BytesValue=]</code> and returns
7367
7373
a [=byte sequence=].
7368
7374
7369
7375
1. If |protocol bytes| matches the <code>network.StringValue</code> production,
@@ -7380,7 +7386,7 @@ a [=byte sequence=].
7380
7386
<div algorithm>
7381
7387
To <dfn>serialize protocol bytes</dfn> given |bytes|:
7382
7388
7383
-
Note: this takes a [=byte sequence=] and returns a <code>network.BytesValue</code>.
7389
+
Note: this takes a [=byte sequence=] and returns a <code>[=network.BytesValue=]</code>.
7384
7390
7385
7391
1. Let |text| be [=UTF-8 decode without BOM or fail=] |bytes|.
7386
7392
@@ -7401,7 +7407,7 @@ Note: this takes a [=byte sequence=] and returns a <code>network.BytesValue</cod
7401
7407
network.Collector = text
7402
7408
</pre>
7403
7409
7404
-
The <code>network.Collector</code> type represents the id of a [=network/collector=].
7410
+
The <code><dfn>network.Collector</dfn></code> type represents the id of a [=network/collector=].
7405
7411
7406
7412
#### The network.CollectorType Type #### {#type-network-CollectorType}
0 commit comments