fenced-frame
fenced-frame copied to clipboard
Fail to report click data from cross-origin subframe using ARA
This is a Protected Audience project. We want to collect click time signals in a click handler. This is in a cross-origin subframe.
When we use reportEvent API to send back the click data, it works fine.
However, it doesn't work when we use setReportEventDataForAutomaticBeacons. The data of setReportEventDataForAutomaticBeacons() called in the cross-origin subframe doesn't overwrite the data set in the top frame.
The code structure is below. Main document that embeds an ad CompanyA-owned ad top frame (calls setReportEventDataForAutomaticBeacons() with crossOriginExposed:true) CompanyA-owned subframe (calls setReportEventDataForAutomaticBeacons() in the click handler and performs navigation)