NEW231094
Can Private Click Measurement support window.open()?
https://bugs.webkit.org/show_bug.cgi?id=231094
Summary Can Private Click Measurement support window.open()?
ymou
Reported 2021-10-01 13:08:56 PDT
Hello! We are working on integrating with Private Click Measurement for web-to-web events. Will PCM also support "window.open()" for decorating links with PCM attributes? From the public docs + our initial testing on Safari 15, it is not supported. For context, because our website's click throughs needs to handle various other features like spam detection and event logging, we prevent the anchor tag's default behavior and instead ultimately delegate to use "window.open()" to navigate the user offsite. It would be great to have this support for us to fully integrate with PCM. (For reference, Google's Attribution Reporting API offers it in this way: https://github.com/WICG/conversion-measurement-api/blob/main/event_attribution_reporting_clicks.md#registering-attribution-sources-for-windowopen-navigations, which does work for our use case.) Thanks!
Attachments
John Wilander
Comment 1 2021-10-03 23:00:13 PDT
Thanks for filing! I assume support for window.open() comes with a requirement to opt in to no opener so that the two windows cannot communicate after the second has been opened. Do you know if Attribution Reporting API has included that requirement?
John Wilander
Comment 2 2021-10-03 23:02:50 PDT
Regardless, this is a request for the standards proposal rather than for WebKit. Please file here instead: https://github.com/privacycg/private-click-measurement/issues
ymou
Comment 3 2021-10-04 10:05:25 PDT
Actually I'm not sure about about the no opener part for Attribution Reporting API, but that sounds like a good idea. I will file an issue in the PCM GitHub. Thanks!
Radar WebKit Bug Importer
Comment 5 2021-10-08 13:09:17 PDT
Note You need to log in before you can comment on or make changes to this bug.