Bug 1852545 [wpt PR 41834] - [FedCM] Update wpt tests for AccountAutoSelectedFlag...
commit84da1db3c80740cc03d737f6447b3c8146416071
authorYi Gu <yigu@chromium.org>
Wed, 27 Sep 2023 11:55:57 +0000 (27 11:55 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Thu, 28 Sep 2023 14:56:18 +0000 (28 14:56 +0000)
tree4aebee17c21eff5fd0c44cfcbc62d07224b1815a
parent70f7fadb5da98ce2f3f4b34067898ee97ac2cb27
Bug 1852545 [wpt PR 41834] - [FedCM] Update wpt tests for AccountAutoSelectedFlag API, a=testonly

Automatic update from web-platform-tests
[FedCM] Update wpt tests for AccountAutoSelectedFlag API

The feature is enabled in test so we should be able to query the boolean
directly. Similar to other FedCM features, the actual exposure of the
API to web content is controlled by the flag in RuntimeEnabledFeatures
on the blink side. Currently the feature is only enabled in tests.

This patch also fixed an issue where the browser process would return
the value even if the feature is disabled.

Change-Id: Iba2a555bc66fd052d140de88d039e23327f249cb
Bug: 1473976
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4845249
Reviewed-by: Nicolás Peña <npm@chromium.org>
Reviewed-by: John Abd-El-Malek <jam@chromium.org>
Commit-Queue: Yi Gu <yigu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1194808}

--

wpt-commits: 7bb53b7fc73f27d476d29c6e91a527e293fa7263
wpt-pr: 41834
testing/web-platform/tests/credential-management/fedcm-account-auto-selected-flag.https.html [new file with mode: 0644]
testing/web-platform/tests/credential-management/support/fedcm/manifest_with_account_auto_selected_flag.json [new file with mode: 0644]
testing/web-platform/tests/credential-management/support/fedcm/token.py
testing/web-platform/tests/credential-management/support/fedcm/token_with_account_auto_selected_flag.py [copied from testing/web-platform/tests/credential-management/support/fedcm/token.py with 80% similarity]
testing/web-platform/tests/credential-management/support/fedcm/token_with_account_id.py