navigation-timing icon indicating copy to clipboard operation
navigation-timing copied to clipboard

"Create a NotRestoredReasons object" takes a realm, but "create the navigation timing entry" doesn't pass it

Open petervanderbeken opened this issue 9 months ago • 0 comments

https://w3c.github.io/navigation-timing/#marking-navigation-timing has step 11:

  1. Set navigationTimingEntry's not restored reasons to the result of creating a NotRestoredReasons object given document's not restored reasons.

Note that create a NotRestoredReasons object takes a not restored reasons backingStruct and a realm, so this should probably pass the right realm. This should probably also link creating a NotRestoredReasons object to https://html.spec.whatwg.org/multipage/nav-history-apis.html#create-a-notrestoredreasons-object.

Also, for some reason that last link in step 11 is to this spec's not restored reasons, but it should probably link to https://html.spec.whatwg.org/multipage/nav-history-apis.html#nrr-struct instead.

petervanderbeken avatar May 07 '24 14:05 petervanderbeken