tor-browser

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

commit 00383feaa7df204628c87316c765fccb310aded2
parent e2c4c19fe4b77a2f6900d5710e60ac5c6f06895c
Author: Marcos Cáceres <caceres_m@apple.com>
Date:   Mon, 15 Dec 2025 18:08:24 +0000

Bug 2003223 [wpt PR 56359] - Digital Credentials: fix abort controller test, a=testonly

Automatic update from web-platform-tests
Digital Credentials: fix abort controller test (#56359)

--

wpt-commits: 30a16c20b284412ff75781889eabbe0f6e1f1727
wpt-pr: 56359

Diffstat:
Mtesting/web-platform/tests/digital-credentials/get.tentative.https.html | 17++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/testing/web-platform/tests/digital-credentials/get.tentative.https.html b/testing/web-platform/tests/digital-credentials/get.tentative.https.html @@ -223,17 +223,16 @@ }, "navigator.credentials.get() promise is rejected if abort controller is aborted after call to get() in cross-origin iframe."); promise_test(async (t) => { - /** @type sequence<CredentialMediationRequirement> */ - const mediations = ["silent", "optional", "conditional", "required"]; - const abortController = new AbortController(); - const { signal } = abortController; - abortController.abort(); - for (const mediation of mediations) { - const requestPromise = navigator.credentials.get({ + for (const mediation of ["silent", "optional", "conditional", "required"]) { + const abortController = new AbortController(); + const { signal } = abortController; + await test_driver.bless("user activation"); + const requestPromise = navigator.credentials.get(makeGetOptions({ mediation, signal, - }); - await promise_rejects_dom(t, "AbortError", requestPromise); + })); + abortController.abort(new Error(`Aborted for testing mediation "${mediation}"`)); + await promise_rejects_js(t, Error, requestPromise); } }, "Mediation is implicitly required and hence ignored. Request is aborted regardless.");