-
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
Define timeOrigin
in the HTML spec
#131
Comments
Should we hang it off of the global object? environment settings object? |
I'm working on a patch. |
... problem is that during navigation time recording there is no document yet, so this would take some delicate handling |
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
See whatwg/html#7339 `time origin` is now an `environment settings object` algorithm, so the reference here should forward there. Closes #131
It should be |
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. |
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
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
The time origin, which is the epoch for all performance timeline APIs, was previously defined in https://w3c.github.io/hr-time/#dfn-time-origin. This makes its computation explicit, without changing its current definition and behavior. Notably: * "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 browsing context, the beginning of navigation, the confirmation of an unload prompt, and the creation of 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. See also w3c/ServiceWorker#1621.
* Remove own version of `timeOrigin` definition See whatwg/html#7339 `time origin` is now an `environment settings object` algorithm, so the reference here should forward there. Closes #131 * Refactor and add note
The time origin, which is the epoch for all performance timeline APIs, was previously defined in https://w3c.github.io/hr-time/#dfn-time-origin. This makes its computation explicit, without changing its current definition and behavior. Notably: * "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 browsing context, the beginning of navigation, the confirmation of an unload prompt, and the creation of 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. See also w3c/ServiceWorker#1621.
Instead of saying what
timeOrigin
means, set it explicitly in the HTML spec at the right moments.The text was updated successfully, but these errors were encountered: