From 63fd4cb88cb1525e4dbb2ef4b57904f97f8f9779 Mon Sep 17 00:00:00 2001 From: Liam Brady Date: Mon, 19 Aug 2024 14:50:01 -0700 Subject: [PATCH] Test that cross-origin subframes can't set automatic beacon data Cross-origin subframes are allowed to send automatic beacons, but they are not allowed to set the data that will be sent out. This CL adds a WPT to confirm that behavior. Change-Id: I490eb5aa7d2a75cc8f6372382d311acbb173ee6f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5783504 Reviewed-by: Andrew Verge Commit-Queue: Liam Brady Cr-Commit-Position: refs/heads/main@{#1343773} --- ...acon-data-cross-origin-subframe.https.html | 51 +++++++++++++++++++ .../remote-context-executor.https.html | 1 + 2 files changed, 52 insertions(+) create mode 100644 fenced-frame/automatic-beacon-data-cross-origin-subframe.https.html diff --git a/fenced-frame/automatic-beacon-data-cross-origin-subframe.https.html b/fenced-frame/automatic-beacon-data-cross-origin-subframe.https.html new file mode 100644 index 000000000000000..d97bf370dc9a760 --- /dev/null +++ b/fenced-frame/automatic-beacon-data-cross-origin-subframe.https.html @@ -0,0 +1,51 @@ + +Test window.fence.setReportEventDataForAutomaticBeacons + + + + + + + + + + + + + + diff --git a/fenced-frame/resources/remote-context-executor.https.html b/fenced-frame/resources/remote-context-executor.https.html index 6b2f5ccc000058c..93e2ab905e78516 100644 --- a/fenced-frame/resources/remote-context-executor.https.html +++ b/fenced-frame/resources/remote-context-executor.https.html @@ -1,6 +1,7 @@ +