@@ -6589,9 +6589,22 @@ To <dfn>maybe collect network response body</dfn> given |sessions|, |request| an
6589
6589
6590
6590
Note: For redirects, only the final response body is stored.
6591
6591
6592
+ 1. Let |collected data| be [=get collected data=] with |request|'s [=request id=] and "response".
6593
+
6594
+ 1. If |collected data| is null, return.
6595
+
6596
+ NOTE: This might happen if there are no collectors setup when the response is created,
6597
+ and [=clone network response body=] does not clone the corresponding body.
6598
+
6599
+ 1. Set |collected data|'s <code> pending</code> to false.
6600
+
6592
6601
1. Let |navigable| be [=get navigable for request=] with |request|.
6593
6602
6594
- 1. If |navigable| is null, return.
6603
+ 1. If |navigable| is null:
6604
+
6605
+ 1. [=Resume=] with "<code> network data collected</code> " and (|request|'s [=request id=] , "response").
6606
+
6607
+ 1. Return.
6595
6608
6596
6609
ISSUE: This prevents collecting data not related to a navigable.
6597
6610
We still need to retrieve the navigable to check against the collector
@@ -6609,14 +6622,11 @@ To <dfn>maybe collect network response body</dfn> given |sessions|, |request| an
6609
6622
6610
6623
1. [=list/Append=] |collector| to |collectors|.
6611
6624
6612
- 1. If |collectors| is [=list/empty=] , return.
6625
+ 1. If |collectors| is [=list/empty=] :
6613
6626
6614
- 1. Let |collected data| be [=get collected data =] with |request|'s [=request id=] and "response".
6627
+ 1. [=Resume =] with " <code> network data collected </code> " and ( |request|'s [=request id=] , "response") .
6615
6628
6616
- 1. If |collected data| is null, return.
6617
-
6618
- NOTE: This might happen if there are no collectors setup when the response is created,
6619
- and [=clone network response body=] does not clone the corresponding body.
6629
+ 1. Return.
6620
6630
6621
6631
1. Let |bytes| be null.
6622
6632
@@ -6656,8 +6666,6 @@ To <dfn>maybe collect network response body</dfn> given |sessions|, |request| an
6656
6666
6657
6667
1. Set |collected data|'s <code> size</code> to |size|.
6658
6668
6659
- 1. Set |collected data|'s <code> pending</code> to false.
6660
-
6661
6669
1. [=Resume=] with "<code> network data collected</code> " and (|request|'s [=request id=] , "response").
6662
6670
6663
6671
</div>
0 commit comments