Closed Bug 2077670 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63215 - Fail instead of timing out when FedCM shows an unexpected dialog

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox160 fixed)

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Attachments

(1 file)

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}

Attached file Notable wpt changes —

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)

Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: