Right thanks for the feedback, I will update the explainer accordingly.I was thinking of updating only Performance Timeline, but I guess it makes sense to update Performance Observer entry too.
By "update", do you mean that we are treating these performance entries as live objects, and allowing them to change after they have been reported? Or is this just about modifying the API to include new information in some instances?(That probably affects the rest of my answers, so I'll instead explain what I expect is happening with the new BackForwardCacheRestorationEntry objects, as it relates to NotRestoredReasons)From your initial example, I would expect the timeline to look like this:Let's consider navigation like below:
-- a.com is not bfcache eligible --
nav1 - a.com -> b.comThis is a network navigation; a.com is unloaded and its timeline is gone. b.com gets a PerformanceNavigationTimingEntry, with no notrestored reasonnav2 - b.com -> a.com -- non-bfcache navigationThis (presumably is a backwards navigation to the same page we started on); I'm not sure if b.com is in the bfcache.As another network navigation, this is a new page load, so a.com has a fresh timeline with a PerformanceNavigationTimingEntry, with a notrestored reason (I think?)-- a.com becomes bfcache eligible --
nav3 - a.com -> b.coma.com goes into the bfcache; If this is a "forward-button" navigation, and b.com gets a new page load, then we should report a notrestored reason.nav4 - b.com -> a.com -- bfcache restoreAt this point, a.com does *not* get a new page load. (I think that's the first time in the example that we see a bfcache restore). We don't change the initial timeline entry. Instead, we append a BackForwardCacheRestorationEntry to the timeline, and if there is an observer, then we send the entry there as well.
--
You received this message because you are subscribed to the Google Groups "bfcache-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bfcache-dev...@chromium.org.
To view this discussion on the web, visit https://groups.google.com/a/chromium.org/d/msgid/bfcache-dev/CAK_TSXK%3DUgYLgTpqkR9s8pemZkoC2m5ywo5E6d5GunS-FO%3DL5A%40mail.gmail.com.