tor-browser

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

commit 536ea74562d8ac82265864a3ecea490cb4ebaa8e
parent b42c1ae94a461fded0b434b431ec4c3418a1a808
Author: Marcos Cáceres <caceres_m@apple.com>
Date:   Tue, 16 Dec 2025 08:28:58 +0000

Bug 2005139 [wpt PR 56627] - Digital Credentials: pass the specified default types, a=testonly

Automatic update from web-platform-tests
Digital Credentials: pass the specified default types (#56627)

--

wpt-commits: d7d00e3bf04dcae2e38909a26441560e29669126
wpt-pr: 56627

Diffstat:
Mtesting/web-platform/tests/digital-credentials/support/helper.js | 24++++--------------------
1 file changed, 4 insertions(+), 20 deletions(-)

diff --git a/testing/web-platform/tests/digital-credentials/support/helper.js b/testing/web-platform/tests/digital-credentials/support/helper.js @@ -15,24 +15,6 @@ * @typedef {GetProtocol | CreateProtocol} Protocol */ -/** @type {GetProtocol[]} */ -const GET_PROTOCOLS = /** @type {const} */ ([ - "openid4vp-v1-unsigned", - "openid4vp-v1-signed", - "openid4vp-v1-multisigned", - "org-iso-mdoc", -]); - -/** @type {CreateProtocol[]} */ -const CREATE_PROTOCOLS = /** @type {const} */ (["openid4vci"]); - -const SUPPORTED_GET_PROTOCOL = GET_PROTOCOLS.find((protocol) => - DigitalCredential.userAgentAllowsProtocol(protocol) -); -const SUPPORTED_CREATE_PROTOCOL = CREATE_PROTOCOLS.find((protocol) => - DigitalCredential.userAgentAllowsProtocol(protocol) -); - /** @type {Record<Protocol, object | MobileDocumentRequest>} */ const CANONICAL_REQUEST_OBJECTS = { openid4vci: { @@ -174,8 +156,9 @@ function makeCredentialOptionsFromConfig(config, mapping) { * @returns {CredentialRequestOptions} */ export function makeGetOptions(config = {}) { + /** @type {MakeGetOptionsConfig} */ const configWithDefaults = { - protocol: SUPPORTED_GET_PROTOCOL, + protocol: ["openid4vp-v1-unsigned", "org-iso-mdoc"], ...config, }; @@ -191,8 +174,9 @@ export function makeGetOptions(config = {}) { * @returns {CredentialCreationOptions} */ export function makeCreateOptions(config = {}) { + /** @type {MakeCreateOptionsConfig} */ const configWithDefaults = { - protocol: SUPPORTED_CREATE_PROTOCOL, + protocol: "openid4vci", ...config, };