tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit db92e9971c9e8e9a4d5b79f15a52663f99dcc2a0
parent c337951da7557fda709f54df12107c4f371e615c
Author: tejasdhagawkar01 <tejasdhagawkar01@gmail.com>
Date:   Fri, 28 Nov 2025 14:53:43 +0000

Bug 2000581 [wpt PR 56056] - [DC] Receive message events for iframe, a=testonly

Automatic update from web-platform-tests
[DC] Receive message events for iframe (#56056)

Co-authored-by: Tejas Dhagawkar <tdhagawkar@microsoft.com>
--

wpt-commits: c18682f41f9cf95a3909d76b21aad274abe8914f
wpt-pr: 56056

Diffstat:
Mtesting/web-platform/tests/digital-credentials/allow-attribute-with-create.https.html | 10+++++++---
Mtesting/web-platform/tests/digital-credentials/allow-attribute-with-get.https.html | 10+++++++---
2 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/testing/web-platform/tests/digital-credentials/allow-attribute-with-create.https.html b/testing/web-platform/tests/digital-credentials/allow-attribute-with-create.https.html @@ -109,9 +109,13 @@ }, }; const { data } = await new Promise((resolve) => { - window.addEventListener("message", resolve, { - once: true, - }); + const callback = (e) => { + if (e.source === iframe.contentWindow) { + window.removeEventListener('message', callback); + resolve(e); + } + } + window.addEventListener("message", callback); iframe.contentWindow.postMessage( { action, options, needsActivation: true }, "*" diff --git a/testing/web-platform/tests/digital-credentials/allow-attribute-with-get.https.html b/testing/web-platform/tests/digital-credentials/allow-attribute-with-get.https.html @@ -111,9 +111,13 @@ }; await test_driver.bless("User activation"); const { data } = await new Promise((resolve) => { - window.addEventListener("message", resolve, { - once: true, - }); + const callback = (e) => { + if (e.source === iframe.contentWindow) { + window.removeEventListener('message', callback); + resolve(e); + } + } + window.addEventListener("message", callback); iframe.contentWindow.postMessage( { action, options, needsActivation: true }, "*"