w3c / navigation-timing

Navigation Timing
https://w3c.github.io/navigation-timing/
Other
116 stars 30 forks source link

The unloadEventEnd attribute #151

Closed yujun-0127 closed 3 years ago

yujun-0127 commented 3 years ago

this description is incorrect, it's same with unloadEventStart

图片

nicjansma commented 3 years ago

Hi @yujun-0127 -- I think in the current Editor's Draft, this should be properly specified:

https://w3c.github.io/navigation-timing/#dom-performancetiming-unloadeventend

If the previous document and the current document have the same same origin, this attribute must return the time immediately after the user agent finishes the unload event of the previous document

and

The unloadEventEnd getter steps are to return this's previous document unload timing's unload event end time.

Please review and let us know

aramyesildeniz commented 3 years ago

MDN defines also with "after finishes unload event":

The unloadEventEnd read-only property returns a timestamp representing the time value equal to the time immediately after the user agent finishes the unload event of the previous document. If there is no previous document, this property value is 0.

cf. https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/unloadEventEnd

nicjansma commented 3 years ago

Closing as the latest draft and Level 2 docs have the correct description, please let us know if you've found the wrong definition published elsewhere