-
Notifications
You must be signed in to change notification settings - Fork 25
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
Expose the "current wall time" #155
Comments
SGTM! @noamr - thoughts? |
SG! I think in general it will also be ok to have default-false for |
|
Of course, right. So your proposal SGTM as is. |
@jyasskin, are you planning on making a PR for this? |
Sure, I can do that: #161 |
We currently expose an environment settings object's current wall time, which optionally coarsens the time depending on the settings object's state, but the authors of a couple recent specifications (privacycg/nav-tracking-mitigations#37 and WICG/storage-buckets#78) have intuitively referred to the [=current wall time=] without providing a settings object. That's a sensible operation, since the point of a wall time is that it doesn't depend on any particular UA state, but we need to make sure that folks don't accidentally expose high-precision timers.
I suggest we define the
<dfn export for=/>current wall time</dfn>
as the result of calling coarsen time given the wall clock's unsafe current time and the default false value for crossOriginIsolatedCapability. That fails safe (100us resolution) if it's used in a context where it really should have taken a settings object.The text was updated successfully, but these errors were encountered: