diff --git a/index.html b/index.html index a656902..4b6de8c 100644 --- a/index.html +++ b/index.html @@ -364,6 +364,7 @@

[Exposed=(Window,Worker)] interface PerformanceResourceTiming : PerformanceEntry { readonly attribute DOMString initiatorType; + readonly attribute DOMString deliveryType; readonly attribute ByteString nextHopProtocol; readonly attribute DOMHighResTimeStamp workerStart; readonly attribute DOMHighResTimeStamp redirectStart; @@ -388,6 +389,11 @@

initiator type.

+

+ A PerformanceResourceTiming has an associated DOMString + delivery + type. +

A PerformanceResourceTiming has an associated DOMString requested @@ -549,6 +555,32 @@

The setting of `initiatorType` is done at the different places where a resource timing entry is reported, such as the [=fetch=] standard.

+

+ deliveryType getter steps are to return the delivery type for this. +

+
+

+ `deliveryType` returns one of the following values: +

+ + +

+ This is expected to be expanded by future updates to this + specification, e.g. to describe consuming preloaded resources and + prefetched navigation requests. +

+

The workerStart getter steps are to convert fetch timestamp for this's To mark resource timing given a [=/fetch timing info=] |timingInfo|, a DOMString |requestedURL|, a DOMString |initiatorType| a global object |global|, a string - |cacheMode|, and a [=/response body info=] |bodyInfo|, perform the + |cacheMode|, a [=/response body info=] |bodyInfo|, and an optional + [=string=] |deliveryType| (by default, the empty string), perform the following steps:

    @@ -1071,8 +1104,8 @@

  1. Setup the resource timing entry for |entry|, given - |initiatorType|, |requestedURL|, |timingInfo|, |cacheMode|, and - |bodyInfo|. + |initiatorType|, |requestedURL|, |timingInfo|, |cacheMode|, + |bodyInfo|, and |deliveryType|.
  2. To setup the resource timing entry for PerformanceResourceTiming |entry| given DOMString |initiatorType|, DOMString |requestedURL|, [=/fetch timing info=] - |timingInfo|, a DOMString |cacheMode|, and a [=response body info=] - |bodyInfo|, perform the following steps: + |timingInfo|, a DOMString |cacheMode|, a [=response body info=] + |bodyInfo|, and an optional DOMString |deliveryType| (by default, the + empty string), perform the following steps:

    1. Assert that |cacheMode| is the empty string or @@ -1111,6 +1145,12 @@

    2. Set |entry|'s cache mode to |cacheMode|.
    3. +
    4. If |deliveryTode| is the empty string and |cacheMode| is not, + then set |deliveryTode| to "cache". +
    5. +
    6. Set |entry|'s delivery + type to |deliveryType|. +

    To convert fetch timestamp given {{DOMHighResTimeStamp}}