Bug 1888045 [wpt PR 45359] - [FedCM] Don't call fedcm_get_and_select_first_account when we don't expect an account chooser, a=testonly

Automatic update from web-platform-tests
[FedCM] Don't call fedcm_get_and_select_first_account when we don't expect an account chooser

Calling this is pointless, and also triggers a Chromedriver bug
(https://crrev.com/c/5398379)

R=npm@chromium.org

Bug: 331237776
Change-Id: Iae58e8d15dc12851440b1a7edbfd4a579f24300b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5398800
Reviewed-by: Nicolás Peña <npm@chromium.org>
Commit-Queue: Nicolás Peña <npm@chromium.org>
Auto-Submit: Christian Biesinger <cbiesinger@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1278606}

--

wpt-commits: 36f3803590f92faaa7de2dfe0f32f7a6785c51d1
wpt-pr: 45359
This commit is contained in:
Christian Biesinger 2024-03-27 23:12:21 +00:00 коммит произвёл moz-wptsync-bot
Родитель 84d5f83ee0
Коммит 57e6f28ca7
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -22,7 +22,7 @@ fedcm_test(async t => {
let options = request_options_with_domain_hint('manifest.py',
'nomatch');
const cred = fedcm_get_and_select_first_account(t, options);
const cred = navigator.credentials.get(options);
// We expect a mismatch dialog.
const type = await fedcm_get_dialog_type_promise(t);
assert_equals(type, 'ConfirmIdpLogin');

Просмотреть файл

@ -19,7 +19,7 @@ fedcm_test(async t => {
await mark_signed_in();
let options = request_options_with_login_hint('manifest.py', 'nomatch');
const cred = fedcm_get_and_select_first_account(t, options);
const cred = navigator.credentials.get(options);
// We expect a mismatch dialog.
const type = await fedcm_get_dialog_type_promise(t);
assert_equals(type, 'ConfirmIdpLogin');