Bug 285651

Summary: Digital Credentials: Implement mock testing framework
Product: WebKit Reporter: Marcos Caceres <marcosc>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 268516    

Marcos Caceres
Reported 2025-01-08 18:17:08 PST
It would be nice to have a mock testing framework for Digital Credential that: * allows setting a DigitalCredential to be received. * emulates dismissing a credential picker (e.g., via an abort controller). * emulates a user aborting a credential picker.
Attachments
Radar WebKit Bug Importer
Comment 1 2025-01-15 18:18:14 PST
Marcos Caceres
Comment 2 2026-07-20 18:06:43 PDT
Implemented under bug 318290 (commit 73c1e36647e4, "Add WebKitTestRunner support for the virtual wallet"). The testdriver set_virtual_wallet_behavior command — actions respond / decline / wait / clear — covers all three capabilities requested here: setting a credential to be returned (respond), dismissing the chooser (decline), and user abort (wait + AbortSignal). The get-mdoc and concurrent-requests WPTs exercise these and run un-skipped. Closing as fixed; because the work landed under 318290 the commit doesn't reference this bug, so it wasn't auto-closed.
Note You need to log in before you can comment on or make changes to this bug.