lbr...@google.com, shiva...@chromium.org, jka...@chromium.org
https://github.com/WICG/turtledove/pull/1386
https://github.com/WICG/fenced-frame/pull/203
This change allows descendant documents of fenced frames to set the root fenced frame’s automatic beacon reporting data, regardless of origin. Both the root fenced frame and the cross-origin data setting document must opt in for this to be allowed.
More detail:
Fenced frames or URN iframes, if loaded through an API like Protected Audience or Shared Storage, can send out reporting beacons automatically if some event occurs (currently only top-level navigation beacons are supported). We previously tweaked this feature to allow cross-origin documents loaded in the root fenced frame's tree to send automatic beacons if opted in, but still kept the restriction that only frames that are same-origin to the origin loaded by the API could set the data that would be sent as part of the beacon.
The existing setup assumes that payload data will only ever come from the buyer directly. However, there are cases where a buyer embeds a cross-origin subpage that contains data that needs to be sent with an automatic beacon. This limitation forces the same-origin root document to be an intermediary between the page with the data and the automatic beacon API, causing unnecessary extra overhead and forcing extra data to be sent directly to the root fenced frame.
To support this use case while still ensuring security guarantees (mainly that a given frame's data cannot be sent across origins without its consent), both the fenced frame root document and the cross-origin subframe document must explicitly opt in. This is the same opt-in shape as other cross-origin Fenced Frame Ads Reporting features. Specifically, the root frame must opt in via the "Allow-Fenced-Frame-Automatic-Beacons" header, and the cross-origin subframe setting the data must opt in via the 'crossOriginExposed' parameter in the call to setReportEvent...().
This does not change the privacy story nor does it introduce a privacy regression, as cross-origin subframes can currently postMessage() data to the root that the root frame can then use as automatic beacon data. Both the existing capability as well as the proposed changes involve the root fenced frame document and the cross-origin subframe document opting-in to this sharing.
None
Not applicable. This feature relates to Protected Audience whose review TAG has already resolved with an "unsatisfied" position.
This is an added functionality and is backward compatible. There are no interoperability risks as no other browsers have decided to implement these features yet.
Gecko: Negative on fenced frames
WebKit: No signal
Web developers: No signals
Other signals:
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
Not applicable as this will not be supported on Android WebView.
Additional debugging capabilities are not necessary for these feature changes.
Supported on all the above platforms except Android WebView.
Yes. See: wpt.fyi link.
None
FencedFramesCrossOriginAutomaticBeaconData
False
None
https://chromestatus.com/feature/5121048142675968?gate=5185729511292928
On 3/19/25 1:16 PM, 'Liam Brady' via blink-dev wrote:
Contact emailslbr...@google.com, shiva...@chromium.org, jka...@chromium.org
Explainer
Flag name on about://flagsNone
Finch feature nameFencedFramesCrossOriginAutomaticBeaconData
Requires code in //chrome?False
Estimated milestones
Anticipated spec changesNone
Link to entry on the Chrome Platform Statushttps://chromestatus.com/feature/5121048142675968?gate=5185729511292928
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/c1bf85f1-93ad-4b8f-b191-84c6dfeffaa9n%40chromium.org.
On 3/25/25 11:04 AM, Liam Brady wrote:
> Note: reading explainer diffs is not great UX.
Ack. I'll avoid linking explainer diffs directly in the future.
This section in the FFAR explainer doc should be a much more readable version of what I linked.
Perfect, thank you.
One thing I'm having a hard time following: in order for the
cross-origin automatic beacons to work, you need both a top-level
frame to send `ACAER: true`, and the cross-origin embedded frame
to send `AFFAB: true`.
But then there's mention of the situation where AFFAO:true
isn't needed (because the cross-origin document set
`crossOriginExposed: true` within
`setReportEventDataForAutomaticBeacons()`.
Why does that override the need to send the header?
> Is it expected that Canary is failing all 4 tests?
Yes. Most fenced frame tests are currently failing on wpt.fyi because they rely on the FencedFrameConfig constructor (see: chrome://flags#enable-fenced-frames-developer-mode) that is not enabled by default. This feature will be enabled by default once we launch fenced frames with local unpartitioned data access, and the tests should start passing then. Note that these tests are all passing on the Chromium build bots where the feature is turned on.
OK - makes sense to me.
LGTM1
This does not change the privacy story nor does it introduce a privacy regression, as cross-origin subframes can currently postMessage() data to the root that the root frame can then use as automatic beacon data. Both the existing capability as well as the proposed changes involve the root fenced frame document and the cross-origin subframe document opting-in to this sharing.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/b91ef12f-56ca-46c8-83e1-8f5f42cf3251n%40chromium.org.