Open Bug 1914120 Opened 1 year ago Updated 4 months ago

PerformanceResourceTiming interface lacks deliveryType and firstInterimResponseStart

Categories

(Core :: DOM: Performance APIs, task, P2)

task

Tracking

()

People

(Reporter: arai, Unassigned)

References

(Depends on 1 open bug)

Details

https://w3c.github.io/resource-timing/#dom-performanceresourcetiming

[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;
    readonly attribute DOMHighResTimeStamp redirectEnd;
    readonly attribute DOMHighResTimeStamp fetchStart;
    readonly attribute DOMHighResTimeStamp domainLookupStart;
    readonly attribute DOMHighResTimeStamp domainLookupEnd;
    readonly attribute DOMHighResTimeStamp connectStart;
    readonly attribute DOMHighResTimeStamp connectEnd;
    readonly attribute DOMHighResTimeStamp secureConnectionStart;
    readonly attribute DOMHighResTimeStamp requestStart;
    readonly attribute DOMHighResTimeStamp firstInterimResponseStart;
    readonly attribute DOMHighResTimeStamp responseStart;
    readonly attribute DOMHighResTimeStamp responseEnd;
    readonly attribute unsigned long long  transferSize;
    readonly attribute unsigned long long  encodedBodySize;
    readonly attribute unsigned long long  decodedBodySize;
    readonly attribute unsigned short responseStatus;
    readonly attribute RenderBlockingStatusType renderBlockingStatus;
    readonly attribute DOMString contentType;
    [Default] object toJSON();
};

deliveryType and firstInterimResponseStart don't exist in our copy of PerformanceResourceTiming.webidl

deliveryType is added by https://github.com/w3c/resource-timing/pull/343 , and
firstInterimResponseStart is added by https://github.com/w3c/resource-timing/pull/366

Currently, cached case for CSS and image doesn't generate the entry (bug 1899734).
To my understanding, those cache cases should use deliveryType == "cache" (in addition to transferSize == 0 or something)

Changing to a task, given this is to reflect the new spec change.

Type: defect → task
Component: DOM: Core & HTML → DOM: Performance

I believe this at least depends on bug 1811291, if it's not in fact a partial duplicate.

Depends on: 1811291
Priority: -- → P2
You need to log in before you can comment on or make changes to this bug.