privacycg / nav-tracking-mitigations

Navigation-based Tracking Mitigations
https://privacycg.github.io/nav-tracking-mitigations/
35 stars 16 forks source link

Specify behavior on tab close / destruction of a top level traversable #83

Closed Trikolon closed 1 month ago

Trikolon commented 2 months ago

While reviewing @g-ortuno 's PR for a web platform test we noticed that Chrome seems to end the extended navigation when the tab gets closed and directly runs the classification algorithm. Is this properly specified in the spec? I couldn't find anything related to destruction of the top level traversable.

In Firefox we currently simply discard the bounce tracking record when the tab gets closed. What is the desired behavior? I think it makes sense to properly end the navigation and record any bounce trackers since closing a tab would be the result of a user action - similar to how we treat user initiated navigations as the end of the extended navigation.

cc @bvandersloot-mozilla Filed a Gecko bug here: https://bugzilla.mozilla.org/show_bug.cgi?id=1921464

svendlarsen commented 1 month ago

Thanks for filing this issue — I can take a look at making sure this is properly specced sometime next week.