tor-browser

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

commit 53153ed1f3d3eded55bd396813371a0bf6799093
parent ef6b4d92f41a7b2c3a9ac4e31cfee6903a3bf06c
Author: Suresh Potti <sureshpotti@microsoft.com>
Date:   Wed, 12 Nov 2025 08:51:11 +0000

Bug 1999449 [wpt PR 55973] - [FedCM] Enable FedCmErrorAttribute flag, a=testonly

Automatic update from web-platform-tests
[FedCM] Enable FedCmErrorAttribute flag

Change follows warning phase as per I2S:
https://chromestatus.com/feature/5124072820310016

Bug: 427474985
Change-Id: I923c39b11bd89e1b1ae900ac7a77296b7c312040
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7123801
Commit-Queue: suresh potti <sureshpotti@microsoft.com>
Reviewed-by: Camille Lamy <clamy@chromium.org>
Reviewed-by: Nicolás Peña <npm@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1542984}

--

wpt-commits: 9ba69c6f45ce20a46b8935cce2d23c55ecea1741
wpt-pr: 55973

Diffstat:
Mtesting/web-platform/tests/fedcm/fedcm-error-basic.https.html | 12++++++------
Mtesting/web-platform/tests/fedcm/fedcm-token-endpoint-rejects-redirects.https.html | 2+-
Mtesting/web-platform/tests/fedcm/fedcm-token-returned-with-http-error.https.html | 2+-
3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/testing/web-platform/tests/fedcm/fedcm-error-basic.https.html b/testing/web-platform/tests/fedcm/fedcm-error-basic.https.html @@ -20,7 +20,7 @@ const url_prefix = manifest_origin + '/fedcm/support/'; fedcm_test(async t => { let test_options = - request_options_with_mediation_required("manifest_id_assertion_endpoint_returns_error.json"); + request_options_with_mediation_required("manifest_id_assertion_endpoint_returns_error_format.json"); await select_manifest(t, test_options); try { @@ -31,14 +31,14 @@ fedcm_test(async t => { } catch (e) { assert_true(e instanceof DOMException); assert_equals(e.name, "IdentityCredentialError"); - assert_equals(e.code, "unauthorized_client"); + assert_equals(e.error, "unauthorized_client"); assert_equals(e.url, url_prefix + "error.html"); } }, 'Test that the promise is rejected with proper error details when dialog is dismissed'); fedcm_test(async t => { let test_options = - request_options_with_mediation_required("manifest_id_assertion_endpoint_returns_error.json"); + request_options_with_mediation_required("manifest_id_assertion_endpoint_returns_error_format.json"); await select_manifest(t, test_options); try { @@ -49,14 +49,14 @@ fedcm_test(async t => { } catch (e) { assert_true(e instanceof DOMException); assert_equals(e.name, "IdentityCredentialError"); - assert_equals(e.code, "unauthorized_client"); + assert_equals(e.error, "unauthorized_client"); assert_equals(e.url, url_prefix + "error.html"); } }, 'Test that the promise is rejected with proper error details when got it is clicked'); fedcm_test(async t => { let test_options = - request_options_with_mediation_required("manifest_id_assertion_endpoint_returns_error.json"); + request_options_with_mediation_required("manifest_id_assertion_endpoint_returns_error_format.json"); await select_manifest(t, test_options); try { @@ -67,7 +67,7 @@ fedcm_test(async t => { } catch (e) { assert_true(e instanceof DOMException); assert_equals(e.name, "IdentityCredentialError"); - assert_equals(e.code, "unauthorized_client"); + assert_equals(e.error, "unauthorized_client"); assert_equals(e.url, url_prefix + "error.html"); } }, 'Test that the promise is rejected with proper error details when more details is clicked'); diff --git a/testing/web-platform/tests/fedcm/fedcm-token-endpoint-rejects-redirects.https.html b/testing/web-platform/tests/fedcm/fedcm-token-endpoint-rejects-redirects.https.html @@ -26,7 +26,7 @@ fedcm_test(async t => { assert_true(e instanceof DOMException); assert_equals(e.name, "IdentityCredentialError"); // 308 should not produce a valid error code - assert_equals(e.code, ""); + assert_equals(e.error, ""); } }, 'Test that token endpoint does not follow redirects'); </script> diff --git a/testing/web-platform/tests/fedcm/fedcm-token-returned-with-http-error.https.html b/testing/web-platform/tests/fedcm/fedcm-token-returned-with-http-error.https.html @@ -26,7 +26,7 @@ fedcm_test(async t => { } catch (e) { assert_true(e instanceof DOMException); assert_equals(e.name, "IdentityCredentialError"); - assert_equals(e.code, ""); + assert_equals(e.error, ""); assert_equals(e.url, ""); } }, 'Test that the promise will be rejected if the response has http error');