[wpt-sync] Sync PR 63215 - Fail instead of timing out when FedCM shows an unexpected dialog
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox160 fixed)
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Attachments
(1 file)
|
121.63 KB,
text/plain
|
Details |
Sync web-platform-tests PR 63215 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63215
Details from upstream follow.
Christian Biesinger <cbiesinger@chromium.org> wrote:
Fail instead of timing out when FedCM shows an unexpected dialog
Some FedCM tests wait for a request that is expected to fail, or to be
auto re-authenticated, to settle. When the browser shows an account
chooser instead, the request stays pending until the test times out.Race these requests against the dialog appearing, so that the tests fail
right away with a message naming the dialog that was shown:
- well-known-client-metadata-validation expects requests to be
rejected, so wrap them in fedcm_settles_without_dialog().- The auto re-authentication tests use a new helper,
fedcm_expect_auto_reauthn(), which allows the auto re-authentication
notice, which is reported as a dialog, but fails on any other dialog.Both helpers now cancel an unexpected dialog, so that the pending
request does not block the requests in later subtests.Written with Claude. This primarily affects wpt.fyi and not the
Chrome-side WPT runner.Bug: 331237776
Change-Id: I3de042932739c3aff09569e4ccfd3f0e92f1d23f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8498602
Commit-Queue: Christian Biesinger \<cbiesinger@chromium.org>
Reviewed-by: Yi Gu \<yigu@chromium.org>
Auto-Submit: Christian Biesinger \<cbiesinger@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1710189}
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=99869
| Assignee | ||
Comment 2•1 month ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 82 tests and 1 subtests
Status Summary
Firefox
OK : 64[Gecko-windows11-32-25h2-opt] 65[Gecko-windows11-64-25h2-opt] 67[Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug] 69[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 77[GitHub]
PASS : 1[GitHub] 22[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 24[Gecko-windows11-32-25h2-opt] 25[Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL : 125[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 126[Gecko-windows11-32-25h2-opt] 128[Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 163[GitHub]
TIMEOUT: 3
ERROR : 1[GitHub] 9[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 12[Gecko-windows11-32-25h2-debug, Gecko-windows11-64-25h2-debug] 14[Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-opt]
NOTRUN : 5[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 8[GitHub]
Chrome
OK : 69
PASS : 127
FAIL : 23
TIMEOUT: 17
ERROR : 2
NOTRUN : 14
Safari
OK : 77
PASS : 2
FAIL : 162
TIMEOUT: 3
ERROR : 1
NOTRUN : 8
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
(See attachment for full changes)
https://hg.mozilla.org/mozilla-central/rev/d85dac886fc8
https://hg.mozilla.org/mozilla-central/rev/f2ec9cf28f6d
Description
•