tor-browser

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

commit fcc8ca151bb2f21e9e4f7adc18afb7af3bc5f4c8
parent 1e041e947fe5d4e3abd73fbb89905472c50afc33
Author: Mohamed Amir Yosef <mamir@chromium.org>
Date:   Tue, 21 Oct 2025 10:37:57 +0000

Bug 1994851 [wpt PR 55491] - Fix Digital Credentials `.create()` tests that test the absence of `requests`, a=testonly

Automatic update from web-platform-tests
Fix Digital Credentials .create() tests that test the absence of requests (#55491)

--

wpt-commits: 253009f7c2384b27780d365f7d8e6d4a5e086ba0
wpt-pr: 55491

Diffstat:
Mtesting/web-platform/tests/digital-credentials/create.tentative.https.html | 26+++++++++++++++++++-------
1 file changed, 19 insertions(+), 7 deletions(-)

diff --git a/testing/web-platform/tests/digital-credentials/create.tentative.https.html b/testing/web-platform/tests/digital-credentials/create.tentative.https.html @@ -9,7 +9,7 @@ <body> <iframe id="same-origin"></iframe> - <iframe id="cross-origin"></iframe> + <iframe id="cross-origin" allow="digital-credentials-create"></iframe> </body> <script type="module"> @@ -88,8 +88,12 @@ }, "Calling navigator.credentials.create() without a digital member same origin."); promise_test(async (t) => { - for (const request of [undefined, []]) { - const options = makeCreateOptions(request); + for (const r of [undefined, []]) { + const options = { + digital: { + requests: r + }, + }; await test_driver.bless("user activation"); await promise_rejects_js(t, TypeError, navigator.credentials.create(options)); } @@ -98,8 +102,12 @@ promise_test(async (t) => { iframeSameOrigin.focus(); const { contentWindow: iframeWindow } = iframeSameOrigin; - for (const request of [undefined, []]) { - const options = makeCreateOptions(request); + for (const r of [undefined, []]) { + const options = { + digital: { + requests: r + }, + }; await test_driver.bless("user activation"); await promise_rejects_js( t, @@ -111,8 +119,12 @@ promise_test(async (t) => { iframeCrossOrigin.focus(); - for (const request of [undefined, []]) { - const options = makeCreateOptions(request); + for (const r of [undefined, []]) { + const options = { + digital: { + requests: r + }, + }; const result = await sendMessage(iframeCrossOrigin, { action: "create", options,