<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>313737</bug_id>
          
          <creation_ts>2026-04-30 05:56:59 -0700</creation_ts>
          <short_desc>Digital Credentials: align CredentialRequestCoordinator method names with spec algorithm names</short_desc>
          <delta_ts>2026-05-03 23:30:08 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Marcos Caceres">marcosc</reporter>
          <assigned_to name="Marcos Caceres">marcosc</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2206217</commentid>
    <comment_count>0</comment_count>
    <who name="Marcos Caceres">marcosc</who>
    <bug_when>2026-04-30 05:56:59 -0700</bug_when>
    <thetext>The CredentialRequestCoordinator&apos;s method names and state machine terminology don&apos;t match the spec&apos;s algorithm names, making it harder to trace spec compliance.

Current → Spec:
- PickerState enum → InteractionState (spec: &quot;interaction states&quot;)
- PickerState::Presenting → InteractionState::Requesting (spec: &quot;requesting&quot;)
- prepareCredentialRequest() → prepareCredentialRequests() (spec: &quot;prepare credential requests&quot;)
- abortPicker() → abortTheCredentialRequest() (spec: &quot;abort the credential request&quot;)
- dismissPickerAndSettle() → rejectTheCredentialRequestWith() (spec: &quot;reject the credential request with&quot;)
- handleDigitalCredentialsPickerResult() → initiateTheCredentialRequest() (spec: &quot;initiate the credential request&quot;)
- showDigitalCredentialsPicker() → showDigitalCredentialsChooser() (spec: &quot;digital credential chooser&quot;)
- dismissDigitalCredentialsPicker() → dismissDigitalCredentialsChooser() (spec: &quot;digital credential chooser&quot;)

This is a pure mechanical rename with no behavioral changes. Aligning names makes it trivial to cross-reference between spec and implementation and reduces review burden for future spec changes.

Files affected: CredentialRequestCoordinator.h/.cpp, CredentialRequestCoordinatorClient.h, DigitalCredential.cpp, DummyCredentialRequestCoordinatorClient.h/.cpp, DigitalCredentialsCoordinator.h/.cpp/.messages.in, WKDigitalCredentialsPicker.h/.mm, WebPageProxy.h/.cpp, PageClient.h, PageClientImplIOS.h/.mm, PageClientImplMac.h/.mm

Depends on: Meta bug 268516</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2207004</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-05-03 07:29:30 -0700</bug_when>
    <thetext>&lt;rdar://problem/176128667&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2207098</commentid>
    <comment_count>2</comment_count>
    <who name="Marcos Caceres">marcosc</who>
    <bug_when>2026-05-03 23:30:08 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/64148</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>