371
371
readonly attribute unsigned long long transferSize;
372
372
readonly attribute unsigned long long encodedBodySize;
373
373
readonly attribute unsigned long long decodedBodySize;
374
+ readonly attribute unsigned short responseStatus;
374
375
readonly attribute RenderBlockingStatusType renderBlockingStatus;
375
376
[Default] object toJSON();
376
377
};
@@ -401,6 +402,11 @@ <h3>
401
402
info=] < a data-dfn-for ="PerformanceResourceTiming "> < dfn > resource
402
403
info</ dfn > </ a > .
403
404
</ p >
405
+ < p >
406
+ A < a > PerformanceResourceTiming</ a > has an associated
407
+ < a data-cite ="FETCH#concept-status "> status</ a > < a data-dfn-for =
408
+ "PerformanceResourceTiming "> < dfn > response status</ dfn > </ a > .
409
+ </ p >
404
410
< p >
405
411
A < a > PerformanceResourceTiming</ a > has an associated
406
412
{{RenderBlockingStatusType}} < a data-dfn-for =
@@ -701,6 +707,16 @@ <h3>
701
707
</ p >
702
708
</ li >
703
709
</ ol >
710
+ < p data-dfn-for ="PerformanceResourceTiming ">
711
+ The < dfn > responseStatus</ dfn > getter steps are to return
712
+ < a > this</ a > 's < a data-for ="PerformanceResourceTiming "> response status</ a > .
713
+ </ p >
714
+ < p class ='note '>
715
+ `responseStatus` is determined in [=Fetch=]. For a cross-origin
716
+ < a data-cite ="FETCH#dom-requestmode-no-cors "> no-cors</ a > request it
717
+ would be 0 because the response would be an < a data-cite =
718
+ "FETCH#concept-filtered-response-opaque "> opaque filtered response</ a > .
719
+ </ p >
704
720
< p data-dfn-for ="PerformanceResourceTiming ">
705
721
The < dfn > renderBlockingStatus</ dfn > getter steps are to return
706
722
< a data-link-for ="RenderBlockingStatusType "> blocking</ a > if
@@ -1107,17 +1123,18 @@ <h2>
1107
1123
To < dfn data-export =""> mark resource timing</ dfn > given a [=/fetch
1108
1124
timing info=] |timingInfo|, a DOMString |requestedURL|, a DOMString
1109
1125
|initiatorType| a < a > global object</ a > |global|, a string
1110
- |cacheMode|, and a [=/response body info=] |bodyInfo|, perform the
1111
- following steps:
1126
+ |cacheMode|, a [=/response body info=] |bodyInfo|, and a
1127
+ < a data-cite ="FETCH#concept-status "> status</ a > |responseStatus|,
1128
+ perform the following steps:
1112
1129
</ p >
1113
1130
< ol >
1114
1131
< li > Create a < a > PerformanceResourceTiming</ a > object |entry| in
1115
1132
|global|'s [=global object/realm=].
1116
1133
</ li >
1117
1134
< li >
1118
1135
< a > Setup the resource timing entry</ a > for |entry|, given
1119
- |initiatorType|, |requestedURL|, |timingInfo|, |cacheMode|, and
1120
- |bodyInfo|.
1136
+ |initiatorType|, |requestedURL|, |timingInfo|, |cacheMode|,
1137
+ |bodyInfo| and |responseStatus| .
1121
1138
</ li >
1122
1139
< li >
1123
1140
< a data-cite =
@@ -1134,8 +1151,9 @@ <h2>
1134
1151
To < dfn data-export =""> setup the resource timing entry</ dfn > for
1135
1152
< a > PerformanceResourceTiming</ a > |entry| given DOMString
1136
1153
|initiatorType|, DOMString |requestedURL|, [=/fetch timing info=]
1137
- |timingInfo|, a DOMString |cacheMode|, and a [=response body info=]
1138
- |bodyInfo|, perform the following steps:
1154
+ |timingInfo|, a DOMString |cacheMode|, a [=response body info=]
1155
+ |bodyInfo|, and a < a data-cite ="FETCH#concept-status "> status</ a >
1156
+ |responseStatus|, perform the following steps:
1139
1157
</ p >
1140
1158
< ol >
1141
1159
< li > Assert that |cacheMode| is the empty string,
@@ -1156,6 +1174,9 @@ <h2>
1156
1174
< li > Set |entry|'s < a data-for ="PerformanceResourceTiming "> cache
1157
1175
mode</ a > to |cacheMode|.
1158
1176
</ li >
1177
+ < li > Set |entry|'s < a data-for ="PerformanceResourceTiming "> response
1178
+ status</ a > to |responseStatus|.
1179
+ </ li >
1159
1180
</ ol >
1160
1181
< p >
1161
1182
To < dfn > convert fetch timestamp</ dfn > given {{DOMHighResTimeStamp}}
0 commit comments