-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relationship between performance.timing.navigationStart and hr-time time origin #43
Comments
Hmm, conceptually, yes.. Only gotcha is that
@plehegar @toddreifsteck wdyt? |
I agree with @igrigorik 's suggestion. |
performance.timing.navigationStart is part of the historical section of the spec. That section starts with: "All time values defined in this appendix are measured in milliseconds since midnight of January 1, 1970 (UTC)." Thus the description says "If there is no previous document, this attribute must return the time the current document is created." Note that the equivalent in PerformanceNavigationTiming is the startTime, which is always equal to 0: We should do better at marking that section as historical. Folks shouldn't look at the historical if they're looking at using the L2 but we still need to keep it there for legacy. |
Here's my attempt..
@plehegar @toddreifsteck any objections? |
belated +1 on this one. Nice result! |
Based on my reading of the spec performance.timing.navigationStart seems to be the same as time origin as specified in hr-time spec. The wording is not exactly the same so I may be mistaken.
If my interpretation is correct then I think we should spell this relationship explicitly in this spec and perhaps align the texts. Otherwise, I think they should be made the same. :)
hr-spec definition
If the global object [HTML51] is a Window object, the time origin must be equal to:
navigation-timing-2 definition
This attribute must return the time immediately after the user agent finishes prompting to unload the previous document. If there is no previous document, this attribute must return the time the current document is created.
where
current document = Window object's newest Document object.
The text was updated successfully, but these errors were encountered: