Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8085276859d07c227807cc0ea0e765fc3bdfe42b
      
https://github.com/WebKit/WebKit/commit/8085276859d07c227807cc0ea0e765fc3bdfe42b
  Author: Marcos Caceres <[email protected]>
  Date:   2026-06-27 (Sat, 27 Jun 2026)

  Changed paths:
    M Source/WebKit/UIProcess/DigitalCredentials/WKDigitalCredentialsPicker.mm

  Log Message:
  -----------
  Digital Credentials: fix DOMException mapping for platform-cancelled and 
unknown errors in WKDigitalCredentialsPicker
https://bugs.webkit.org/show_bug.cgi?id=311722
rdar://174308268

Reviewed by Anne van Kesteren.

Map platform-cancelled and unknown errors to OperationError per spec. 
WKIdentityDocumentPresentmentErrorCancelled now falls through to the default 
OperationError case since platform cancellation is distinct from user 
cancellation (NotAllowedError) and AbortSignal cancellation (AbortError). The 
default/unknown case changes from UnknownError to OperationError, which is the 
spec's catch-all for operation-specific failures.

* Source/WebKit/UIProcess/DigitalCredentials/WKDigitalCredentialsPicker.mm:
(-[WKDigitalCredentialsPicker handlePresentmentCompletionWithResponse:error:]):
(-[WKDigitalCredentialsPicker handleNSError:]):

Canonical link: https://commits.webkit.org/315973@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to