Closed Bug 2003223 Opened 3 months ago Closed 3 months ago

[wpt-sync] Sync PR 56359 - Digital Credentials: fix abort controller test

Categories

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

task

Tracking

(firefox148 fixed)

RESOLVED FIXED
148 Branch
Tracking Status
firefox148 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 56359 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/56359
Details from upstream follow.

Marcos Caceres <caceres_m@apple.com> wrote:

Digital Credentials: fix abort controller test

The test was calling abort() before making the request, which immediately rejects the promise. The fix:

  • Moves abort() call to after the request is initiated
  • Uses a custom Error instead of generic AbortError for clearer testing
  • Adds proper user activation blessing for each test iteration
  • Uses makeGetOptions() with object API for consistency

This ensures we're testing the actual abort behavior during request processing rather than pre-aborted requests.

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 14 tests

Status Summary

Firefox

OK : 6
PASS : 2
FAIL : 27
ERROR: 1[GitHub] 8[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-24h2-debug, Gecko-windows11-32-24h2-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt]

Chrome

OK : 1
PASS : 11
FAIL : 2

Safari

OK : 1
PASS : 12
FAIL : 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

New Tests That Don't Pass

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