Skip to content

Commit

Permalink
Add a timestamp to NavigationInfo
Browse files Browse the repository at this point in the history
This ensures that navigation events get a (wall clock) timestamp.
  • Loading branch information
jgraham committed Dec 16, 2022
1 parent 14731db commit b26b0c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2812,6 +2812,7 @@ TODO: Link to the definition in the HTML spec.
browsingContext.NavigationInfo = {
context: browsingContext.BrowsingContext,
navigation: browsingContext.Navigation / null,
timestamp: int,
url: text,
}
</pre>
Expand All @@ -2825,6 +2826,8 @@ To <dfn>get the navigation info</dfn>, given |context| and |navigation status|:

1. Let |navigation id| be |navigation status|'s id.

1. Let |timestamp| be a [=time value=] representing the current date and time in UTC.

1. Let |url| be |navigation status|'s url.

1. Return a [=map=] matching the
Expand Down

0 comments on commit b26b0c3

Please sign in to comment.