Closed Bug 1886584 Opened 11 months ago Closed 11 months ago

[wpt-sync] Sync PR 45225 - Improve error message when navigator.identity.digital.providers == []

Categories

(Core :: DOM: Credential Management, task, P4)

task

Tracking

()

RESOLVED FIXED
126 Branch
Tracking Status
firefox126 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Peter Kotwicz <pkotwicz@chromium.org> wrote:

Improve error message when navigator.identity.digital.providers == []

This CL improves the error message when
navigator.identity.digital.providers == []

BUG=330560074

Change-Id: I69c5401133e12ed01e6d2ae97645ad0d832c699f

Reviewed-on: https://chromium-review.googlesource.com/5383607
WPT-Export-Revision: bb3c57d733f582e73d69d0ec4ffb7e47cf458fb2

Component: web-platform-tests → DOM: Credential Management
Product: Testing → Core

CI Results

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

Total 1 tests and 12 subtests

Status Summary

Firefox

OK : 1
PASS: 2
FAIL: 10

Chrome

OK : 1
PASS: 4
FAIL: 8

Safari

OK : 1
FAIL: 12

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /credential-management/digital-identity.https.html [wpt.fyi]: OK [GitHub], SKIP [Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows11-32-2009-qr-debug, Gecko-windows11-32-2009-qr-opt, Gecko-windows11-64-2009-qr-debug, Gecko-windows11-64-2009-qr-opt] (Chrome: OK, Safari: OK)
    • navigator.credentials.get() API works in toplevel frame.: FAIL (Chrome: FAIL, Safari: FAIL)
    • navigator.credentials.get() API fails if IdentityCredentialRequestOptions::providers is not specified.: FAIL (Chrome: PASS, Safari: FAIL)
    • navigator.credentials.get() API fails if there are no providers.: FAIL (Chrome: PASS, Safari: FAIL)
    • navigator.identity.get() API works in toplevel frame.: FAIL (Chrome: FAIL, Safari: FAIL)
    • navigator.identity.get() API fails if DigitalCredentialRequestOptions::providers is not specified.: FAIL (Chrome: FAIL, Safari: FAIL)
    • navigator.identity.get() API fails if there are no providers.: FAIL (Chrome: FAIL, Safari: FAIL)
    • navigator.identity.get() API fails if there is more than one provider.: FAIL (Chrome: FAIL, Safari: FAIL)
    • navigator.identity.get() promise is rejected when the page aborts the request.: FAIL (Chrome: FAIL, Safari: FAIL)
    • navigator.identity.get() succeeds in same-origin iframe: FAIL (Chrome: FAIL, Safari: FAIL)
    • navigator.identity.get() fails in cross-origin iframe: FAIL (Chrome: FAIL, Safari: FAIL)

Tests Disabled in Gecko Infrastructure

  • /credential-management/digital-identity.https.html [wpt.fyi]: OK [GitHub], SKIP [Gecko-android-em-7.0-x86_64-lite-qr-opt-geckoview, Gecko-android-em-7.0-x86_64-qr-debug-geckoview, Gecko-android-em-7.0-x86_64-qr-opt-geckoview, Gecko-linux1804-64-qr-debug, Gecko-linux1804-64-qr-opt, Gecko-windows11-32-2009-qr-debug, Gecko-windows11-32-2009-qr-opt, Gecko-windows11-64-2009-qr-debug, Gecko-windows11-64-2009-qr-opt] (Chrome: OK, Safari: OK)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0a4599dd547c [wpt PR 45225] - Improve error message when navigator.identity.digital.providers == [], a=testonly
Status: NEW → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch
You need to log in before you can comment on or make changes to this bug.