github web-platform-tests/wpt merge_pr_46611

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
15 months ago

Fenced frame: Set referrer header for all event-level beacons. (#46611)

A previous CL set the "Referer" header for reportEvent() beacons to the
frame's origin. This CL sets that header for automatic beacons as well,
and puts the change behind a new feature flag. Automatic beacons from
component ads will not have their "Referer" header set to the frames
origin for privacy reasons, and instead will be set to the root ad
frame's origin. To track this, ad component configs will now store the
origin of the root ad frame's config on the browser side.

This CL also updates WPTs and other tests to account for the changes.

Previous CL:
https://chromium-review.googlesource.com/c/chromium/src/+/5551871

Design Doc:
https://docs.google.com/document/d/1gKRZ9g_X5HCZbW__GinViwcC8iWEai_kBXsiJCXrt80/edit?usp=sharing

Change-Id: Idfaeee92ad5bf471b34002a6a701290d1ae31cf1
Bug: 341884774
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5544804
Commit-Queue: Liam Brady lbrady@google.com
Reviewed-by: Garrett Tanzer gtanzer@chromium.org
Reviewed-by: Alex Moshchuk alexmos@chromium.org
Cr-Commit-Position: refs/heads/main@{#1310677}

Co-authored-by: Liam Brady lbrady@google.com

Don't miss a new wpt release

NewReleases is sending notifications on new releases.