Skip to content

fix: ship IDS_WEBAUTHN_TOUCH_ID_PROMPT_REASON and allow overriding it#51595

Merged
VerteDinde merged 2 commits into
43-x-yfrom
trop/43-x-y-bp-fix-ship-ids_webauthn_touch_id_prompt_reason-and-allow-overriding-it-1778612912424
May 12, 2026
Merged

fix: ship IDS_WEBAUTHN_TOUCH_ID_PROMPT_REASON and allow overriding it#51595
VerteDinde merged 2 commits into
43-x-yfrom
trop/43-x-y-bp-fix-ship-ids_webauthn_touch_id_prompt_reason-and-allow-overriding-it-1778612912424

Conversation

@trop
Copy link
Copy Markdown
Contributor

@trop trop Bot commented May 12, 2026

Backport of #51592

See that PR for details.

Notes: Fixed a crash in the macOS Touch ID WebAuthn prompt caused by a missing string resource, and added touchID.promptReason to app.configureWebAuthn() to customize the prompt text.

trop Bot and others added 2 commits May 12, 2026 19:08
Pack device/fido strings into the locale .pak files so
IDS_WEBAUTHN_TOUCH_ID_PROMPT_REASON ("verify your identity on $1") is
present at runtime. Previously the resource was never repacked, so the
macOS Touch ID prompt for WebAuthn requests crashed when looking up the
missing IDS string.

Also lets apps override the prompt text via
configureWebAuthn({ touchID: { promptReason } }) using
ResourceBundle::OverrideLocaleStringResource. An optional $1 placeholder
is replaced with the relying party ID; without it the string is used
verbatim.

Co-authored-by: Sam Attard <sattard@anthropic.com>
gn check does not evaluate preprocessor conditionals, so it flags the
mac-only #include of fido_strings.h on Linux/Windows even though the
include is behind BUILDFLAG(IS_MAC). Depend on //device/fido/strings on
all platforms to satisfy the header check.

Co-authored-by: Sam Attard <sattard@anthropic.com>
@trop trop Bot requested a review from MarshallOfSound May 12, 2026 19:08
@trop trop Bot added 43-x-y backport This is a backport PR semver/minor backwards-compatible functionality labels May 12, 2026
@VerteDinde VerteDinde enabled auto-merge (squash) May 12, 2026 19:10
@VerteDinde VerteDinde merged commit 2d41f41 into 43-x-y May 12, 2026
80 checks passed
@VerteDinde VerteDinde deleted the trop/43-x-y-bp-fix-ship-ids_webauthn_touch_id_prompt_reason-and-allow-overriding-it-1778612912424 branch May 12, 2026 21:12
@release-clerk
Copy link
Copy Markdown

release-clerk Bot commented May 12, 2026

Release Notes Persisted

Fixed a crash in the macOS Touch ID WebAuthn prompt caused by a missing string resource, and added touchID.promptReason to app.configureWebAuthn() to customize the prompt text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

43-x-y backport This is a backport PR semver/minor backwards-compatible functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant