attribution-reporting-api icon indicating copy to clipboard operation
attribution-reporting-api copied to clipboard

Consider limiting the number of sources a reporting origin can register per initiated navigation

Open johnivdel opened this issue 2 years ago • 5 comments

Because the API supports source registrations on both background attribution redirects, and foreground navigation redirects, a single reporting origin can potentially register many navigation sources in response to a single initiated navigation.

johnivdel avatar Dec 13 '23 19:12 johnivdel

To clarify, there are two axes on which the same reporting origin can register multiple navigation sources from the same navigation:

  1. Background and foreground chains
  2. Redirects within either a background or foreground chain

Restricting either axis would be a breaking change.

apasel422 avatar Apr 26 '24 18:04 apasel422

To clarify, there are two axes on which the same reporting origin can register multiple navigation sources from the same navigation:

  1. Background and foreground chains
  2. Redirects within either a background or foreground chain

Restricting either axis would be a breaking change.

Also, fenced frame beacons can also registration ARA from navigation.

linnan-github avatar Apr 26 '24 18:04 linnan-github

Another complication is that a single user activation can call window.open multiple times, which technically correspond to multiple navigations.

apasel422 avatar Apr 26 '24 18:04 apasel422

Another complication is that a single user activation can call window.open multiple times, which technically correspond to multiple navigations.

I was wrong about this. Per MDN:

Modern browsers have strict popup blocker policies. Popup windows must be opened in direct response to user input, and a separate user gesture event is required for each Window.open() call.

apasel422 avatar Apr 26 '24 19:04 apasel422

Would excess registrations here be rejected or downgraded to event sources? Perhaps there's an argument for allowing the reporting origin to configure this.

apasel422 avatar Aug 08 '24 20:08 apasel422