forked from whatwg/html
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The time origin, which is the epoch for all performance timeline APIs, was previously defined [here](https://w3c.github.io/hr-time/#dfn-time-origin). This PR makes its computation explicity, without changing its current definition and behavior. - `time origin` becomes an `environment settings object` algorithm, computed differently for windows vs. worker scopes - The 4 places where this timestamp is set are creation of an `about:blank` context, beginning of navigation, confirmation of an unload prompt, and creating a worker. - The timestamp is a `shared monotonic clock` value, which is defined in HR-TIME (and internally in ECMAScript). As part of this PR, also refactored unload prompts to return a result rather than rely on a somewhat hand-wavy "refused to allow" property. See w3c/hr-time#131 and w3c/navigation-timing#166
- Loading branch information
Showing
1 changed file
with
88 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters