PerformanceResourceTiming interface lacks deliveryType and firstInterimResponseStart
Categories
(Core :: DOM: Performance APIs, task, P2)
Tracking
()
| 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)
| Reporter | ||
Comment 1•2 years ago
|
||
Changing to a task, given this is to reflect the new spec change.
| Reporter | ||
Updated•2 years ago
|
Comment 2•2 years ago
|
||
I believe this at least depends on bug 1811291, if it's not in fact a partial duplicate.
Updated•1 year ago
|
Comment 3•3 months ago
|
||
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.
| Assignee | ||
Comment 4•1 month ago
|
||
We'll need pref pref dom.performance.deliverytype.enabled and bug 2071913 in order to pass the speculation wpt's.
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 5•1 month ago
|
||
With "cache" implemented, deliveryType now covers every value the spec
defines, so the pref can ship enabled.
Comment 7•1 month ago
|
||
| bugherder | ||
Comment 8•1 month ago
|
||
| bugherder | ||
Updated•1 month ago
|
Comment 9•1 month ago
|
||
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.
| Assignee | ||
Comment 10•1 month ago
|
||
(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, asfirstInterimResponseStarthas 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
Comment 11•1 month ago
|
||
This change is sufficiently documented on MDN; see https://github.com/mdn/content/issues/45889.
| Assignee | ||
Updated•23 days ago
|
Updated•23 days ago
|
Description
•