Closed Bug 1914120 Opened 2 years ago Closed 1 month ago

PerformanceResourceTiming interface lacks deliveryType and firstInterimResponseStart

Categories

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

task

Tracking

()

RESOLVED FIXED
158 Branch
Tracking Status
firefox158 --- fixed

People

(Reporter: arai, Assigned: acreskey)

References

Details

(Keywords: dev-doc-complete, Whiteboard: [fxpe])

Attachments

(1 external file)

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

As part of the speculation rules prefetch work (bug 2037091), we've implemented the "navigational-prefetch" value of deliveryType on PerformanceResourceTiming/PerformanceNavigationTiming, gated behind a new dedicated pref dom.performance.deliverytype.enabled (default off) -- kept independent of dom.speculation_rules.enabled since this doesn't implement the "cache" value from this bug. Flagging here since this bug tracks deliveryType support overall; the "cache" value (and the pref flip once it's done) is still open.

Depends on: 2071913
See Also: → 2071914

We'll need pref pref dom.performance.deliverytype.enabled and bug 2071913 in order to pass the speculation wpt's.

Assignee: nobody → acreskey

With "cache" implemented, deliveryType now covers every value the spec
defines, so the pref can ship enabled.

Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch
Keywords: dev-doc-needed
QA Whiteboard: [qa-triage-done-c159/b158]

I'm looking into documenting this release on MDN. I'm assuming this is really just about deliveryType, as firstInterimResponseStart has been supported since Firefox 152: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/152#apis?

Let me know if this seems wrong.

(In reply to Chris Mills [:cmills] from comment #9)

I'm looking into documenting this release on MDN. I'm assuming this is really just about deliveryType, as firstInterimResponseStart has been supported since Firefox 152: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/152#apis?

Let me know if this seems wrong.

Hi - yes, that is correct, we just added deliveryType in bug https://bugzilla.mozilla.org/show_bug.cgi?id=2071913#c5

This change is sufficiently documented on MDN; see https://github.com/mdn/content/issues/45889.

Whiteboard: [fxpe]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: