From 8dd16259287f58f9273002717ec4d27e97127719 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 07:43:14 +0200 Subject: Merging upstream version 127.0. Signed-off-by: Daniel Baumann --- ...event-cross-origin-content-initiated.https.html | 51 ++++++++++++++++++ ...event-cross-origin-nested-urn-iframe.https.html | 62 ++++++++++++++++++++++ ...nce-report-event-cross-origin-nested.https.html | 61 +++++++++++++++++++++ ...vent-cross-origin-no-embedder-opt-in.https.html | 50 +++++++++++++++++ ...vent-cross-origin-no-subframe-opt-in.https.html | 46 ++++++++++++++++ ...-origin-urn-iframe-content-initiated.https.html | 51 ++++++++++++++++++ ...origin-urn-iframe-no-embedder-opt-in.https.html | 50 +++++++++++++++++ ...origin-urn-iframe-no-subframe-opt-in.https.html | 46 ++++++++++++++++ ...report-event-cross-origin-urn-iframe.https.html | 46 ++++++++++++++++ .../fence-report-event-cross-origin.https.html | 46 ++++++++++++++++ .../fence-report-event-sub-fencedframe.https.html | 46 ++++++++++++++++ .../tests/fenced-frame/resources/utils.js | 17 +++++- ...null-config-navigates-to-about-blank.https.html | 15 ++++-- 13 files changed, 581 insertions(+), 6 deletions(-) create mode 100644 testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-content-initiated.https.html create mode 100644 testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-nested-urn-iframe.https.html create mode 100644 testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-nested.https.html create mode 100644 testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-no-embedder-opt-in.https.html create mode 100644 testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-no-subframe-opt-in.https.html create mode 100644 testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-urn-iframe-content-initiated.https.html create mode 100644 testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-urn-iframe-no-embedder-opt-in.https.html create mode 100644 testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-urn-iframe-no-subframe-opt-in.https.html create mode 100644 testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-urn-iframe.https.html create mode 100644 testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin.https.html create mode 100644 testing/web-platform/tests/fenced-frame/fence-report-event-sub-fencedframe.https.html (limited to 'testing/web-platform/tests/fenced-frame') diff --git a/testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-content-initiated.https.html b/testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-content-initiated.https.html new file mode 100644 index 0000000000..9c1d47d050 --- /dev/null +++ b/testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-content-initiated.https.html @@ -0,0 +1,51 @@ + +Test window.fence.reportEvent from cross-origin subframes. + + + + + + + + + + + diff --git a/testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-nested-urn-iframe.https.html b/testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-nested-urn-iframe.https.html new file mode 100644 index 0000000000..7d0544a5ad --- /dev/null +++ b/testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-nested-urn-iframe.https.html @@ -0,0 +1,62 @@ + +Test window.fence.reportEvent from nested cross-origin subframes. + + + + + + + + + + + diff --git a/testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-nested.https.html b/testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-nested.https.html new file mode 100644 index 0000000000..4d1262f4b1 --- /dev/null +++ b/testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-nested.https.html @@ -0,0 +1,61 @@ + +Test window.fence.reportEvent from nested cross-origin subframes. + + + + + + + + + + + diff --git a/testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-no-embedder-opt-in.https.html b/testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-no-embedder-opt-in.https.html new file mode 100644 index 0000000000..d8fa5133cd --- /dev/null +++ b/testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-no-embedder-opt-in.https.html @@ -0,0 +1,50 @@ + +Test window.fence.reportEvent from cross-origin subframes. + + + + + + + + + + + diff --git a/testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-no-subframe-opt-in.https.html b/testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-no-subframe-opt-in.https.html new file mode 100644 index 0000000000..2b054c1837 --- /dev/null +++ b/testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-no-subframe-opt-in.https.html @@ -0,0 +1,46 @@ + +Test window.fence.reportEvent from cross-origin subframes. + + + + + + + + + + + diff --git a/testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-urn-iframe-content-initiated.https.html b/testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-urn-iframe-content-initiated.https.html new file mode 100644 index 0000000000..21c9ea1a43 --- /dev/null +++ b/testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-urn-iframe-content-initiated.https.html @@ -0,0 +1,51 @@ + +Test window.fence.reportEvent from cross-origin subframes. + + + + + + + + + + + diff --git a/testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-urn-iframe-no-embedder-opt-in.https.html b/testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-urn-iframe-no-embedder-opt-in.https.html new file mode 100644 index 0000000000..5d368fe7f1 --- /dev/null +++ b/testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-urn-iframe-no-embedder-opt-in.https.html @@ -0,0 +1,50 @@ + +Test window.fence.reportEvent from cross-origin subframes. + + + + + + + + + + + diff --git a/testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-urn-iframe-no-subframe-opt-in.https.html b/testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-urn-iframe-no-subframe-opt-in.https.html new file mode 100644 index 0000000000..df22749a9e --- /dev/null +++ b/testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-urn-iframe-no-subframe-opt-in.https.html @@ -0,0 +1,46 @@ + +Test window.fence.reportEvent from cross-origin subframes. + + + + + + + + + + + diff --git a/testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-urn-iframe.https.html b/testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-urn-iframe.https.html new file mode 100644 index 0000000000..b37fec812d --- /dev/null +++ b/testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin-urn-iframe.https.html @@ -0,0 +1,46 @@ + +Test window.fence.reportEvent from cross-origin subframes. + + + + + + + + + + + diff --git a/testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin.https.html b/testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin.https.html new file mode 100644 index 0000000000..df7ae776ab --- /dev/null +++ b/testing/web-platform/tests/fenced-frame/fence-report-event-cross-origin.https.html @@ -0,0 +1,46 @@ + +Test window.fence.reportEvent from cross-origin subframes. + + + + + + + + + + + diff --git a/testing/web-platform/tests/fenced-frame/fence-report-event-sub-fencedframe.https.html b/testing/web-platform/tests/fenced-frame/fence-report-event-sub-fencedframe.https.html new file mode 100644 index 0000000000..0b3231ca92 --- /dev/null +++ b/testing/web-platform/tests/fenced-frame/fence-report-event-sub-fencedframe.https.html @@ -0,0 +1,46 @@ + +Test window.fence.reportEvent from nested fenced frames. + + + + + + + + + + + diff --git a/testing/web-platform/tests/fenced-frame/resources/utils.js b/testing/web-platform/tests/fenced-frame/resources/utils.js index 462bda37fc..4914802518 100644 --- a/testing/web-platform/tests/fenced-frame/resources/utils.js +++ b/testing/web-platform/tests/fenced-frame/resources/utils.js @@ -162,8 +162,8 @@ async function generateURNFromFledgeRawURL( // @param {boolean} [ad_with_size = false] - Determines whether the auction is // run with ad sizes specified. // @param {boolean} [register_beacon = false] - If true, FLEDGE logic will -// register reporting beacons -// after completion. +// register reporting beacons after +// completion. async function generateURNFromFledge( href, keylist, nested_urls = [], resolve_to_config = false, ad_with_size = false, requested_size = null, register_beacon = false) { @@ -347,6 +347,19 @@ function attachFrameContext( num_components); } +// Performs a content-initiated navigation of a frame proxy. This navigated page +// uses a new urn:uuid as its communication channel to prevent potential clashes +// with the currently loaded document. +async function navigateFrameContext(frame_proxy, {headers = [], origin = ''}) { + const [uuid, url] = generateRemoteContextURL(headers, origin); + frame_proxy.execute((url) => { + window.executor.suspend(() => { + window.location = url; + }); + }, [url]) + frame_proxy.context_id = uuid; +} + function replaceFrameContext(frame_proxy, { generator_api = '', resolve_to_config = false, diff --git a/testing/web-platform/tests/fenced-frame/setting-null-config-navigates-to-about-blank.https.html b/testing/web-platform/tests/fenced-frame/setting-null-config-navigates-to-about-blank.https.html index 2595fd64c9..c8322dab19 100644 --- a/testing/web-platform/tests/fenced-frame/setting-null-config-navigates-to-about-blank.https.html +++ b/testing/web-platform/tests/fenced-frame/setting-null-config-navigates-to-about-blank.https.html @@ -1,4 +1,5 @@ + @@ -11,13 +12,13 @@