Closed pythagoraskitty closed 1 year ago
Should the worklet also handle dictionaries, or should it just expect the unpacked urls?
It feels more consistent to use the same parameter type. But on the other hand, the reporting data may not be useful inside the worklet.
My current thinking is to just send the URLs to the worklet (unpacking in SharedStorageWorkletHost):
As you said, the reporting data isn't useful inside the worklet, so it seemed strange to plumb it through there.
For utility and adoptability, prior to the deprecation of third-party cookies, we will need to support event-level reporting for
sharedStorage.selectURL()
in a manner that is roughly equivalent to what the FLEDGE API has implemented in theirregisterAdBeacon()
.We propose updating the
urls
parameter, which is currently an array of URLs, to an array of dictionaries where the metadata can be omitted, e.g. in the following example:We would then use this metadata to hook up to
window.fence.reportEvent()
.In the long term, however, we will not be able to support this type of reporting, as it can be used to leak the index simply by using a distinct
report_url
for each candidate Fenced Frameurl
.We welcome feedback on this proposal.