w3c / hr-time

High Resolution Time
https://w3c.github.io/hr-time/
Other
52 stars 24 forks source link

Define `timeOrigin` in the HTML spec #131

Closed noamr closed 2 years ago

noamr commented 2 years ago

Instead of saying what timeOrigin means, set it explicitly in the HTML spec at the right moments.

yoavweiss commented 2 years ago

Should we hang it off of the global object? environment settings object?

noamr commented 2 years ago

I'm working on a patch. I believe it should be associated with a document and with a WorkerGlobalScope. Otherwise it would get fudged in BFCache (which is unspecified behavior today)

noamr commented 2 years ago

... problem is that during navigation time recording there is no document yet, so this would take some delicate handling

npm1 commented 2 years ago

It should be Window or WorkerGlobalScope, no?

noamr commented 2 years ago

It should be Window or WorkerGlobalScope, no?

See the html PR. It's in the environment settings object, which is where the "virtual" things that can go to either a window or a worker but in a different way are defined.