[Webkit-unassigned] [Bug 250331] New: Add navigationId to PerformanceEntry and subclasses
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jan 9 11:35:29 PST 2023
https://bugs.webkit.org/show_bug.cgi?id=250331
Bug ID: 250331
Summary: Add navigationId to PerformanceEntry and subclasses
Product: WebKit
Version: WebKit Nightly Build
Hardware: All
OS: All
Status: NEW
Severity: Enhancement
Priority: P2
Component: Platform
Assignee: webkit-unassigned at lists.webkit.org
Reporter: iclelland at chromium.org
(Presuming that https://github.com/w3c/performance-timeline/pull/192 and the related HTML change https://github.com/whatwg/html/pull/7370 land)
PerformanceEntry obejcts (https://w3c.github.io/performance-timeline/#the-performanceentry-interface) should track the number of times that a loaded document has appeared to the user to navigate. Initially this is a count of back-forward cache restorations, which are indistinguishable to the user from other history navigations. The intention is to extend this to include single-page-app (SPA) transitions which mimic traditional navigations (see https://github.com/WICG/soft-navigations), with other extensions possible in the future.
The overall change here is that PerformanceEntry's IDL becomes
interface PerformanceEntry {
readonly attribute DOMString name;
readonly attribute DOMString entryType;
readonly attribute DOMHighResTimeStamp startTime;
readonly attribute DOMHighResTimeStamp duration;
readonly attribute unsigned long navigationId;
[Default] object toJSON();
};
where navigationId is set to the value of a similar counter on the document where the entry originated. This counter starts at 1 for the initial (network) navigation, and is incremented by back-forward-cache restoration events (and in the future by detected SPA navigations)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230109/472af7b7/attachment-0001.htm>
More information about the webkit-unassigned
mailing list