| Summary: | performance.timeOrigin drifts slowly during the lifetime of a page | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Nic Jansma <nic> |
| Component: | Page Loading | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW --- | ||
| Severity: | Major | CC: | achristensen, beidson, noam, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 16 | ||
| Hardware: | Mac (Apple Silicon) | ||
| OS: | macOS 12 | ||
|
Description
Nic Jansma
2023-06-27 07:41:00 PDT
I double-checked the spec, and indeed it should be stable throughout the lifetime of the document. In https://w3c.github.io/hr-time/#dfn-estimated-monotonic-time-of-the-unix-epoch, the "estimated monotonic time of the Unix epoch" is initialized once, while in https://github.com/WebKit/WebKit/blob/main/Source/WebCore/page/Performance.cpp#L86 it's effectively computed every time timeOrigin() is called. |