Skip to content

chore: bump chromium to 151.0.7894.0 (main) - #51967

Merged
jkleinsc merged 42 commits into
mainfrom
roller/chromium/main
Jun 17, 2026
Merged

jkleinsc merged 42 commits into
mainfrom
roller/chromium/main

Conversation

@electron-roller

@electron-roller electron-roller Bot commented Jun 11, 2026 •

Copy link
Copy Markdown
Contributor

Updating Chromium to 151.0.7894.0.

See all changes in 151.0.7873.0..151.0.7894.0

Notes: Updated Chromium to 151.0.7894.0.

@electron-roller electron-roller Bot added no-backport semver/patch backwards-compatible bug fixes labels Jun 11, 2026
@electron-roller
electron-roller Bot requested a review from a team as a code owner June 11, 2026 22:23
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Jun 11, 2026
@electron-roller electron-roller Bot added semver/patch backwards-compatible bug fixes new-pr 🌱 PR opened recently no-backport labels Jun 11, 2026
@electron-roller electron-roller Bot changed the title chore: bump chromium to 151.0.7888.0 (main) chore: bump chromium to 151.0.7889.0 (main) Jun 12, 2026
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Jun 12, 2026
@electron-roller electron-roller Bot changed the title chore: bump chromium to 151.0.7889.0 (main) chore: bump chromium to 151.0.7891.0 (main) Jun 13, 2026
chromium-roller[bot] and others added 17 commits June 14, 2026 12:15
fix_restore_sdk_inputs_cross-toolchain_deps_for_macos.patch was
absorbed by the upstream switch to `is_mac || is_ios` in the
sdk_inputs cross-toolchain condition.

feat_allow_enabling_extension_panels_on_custom_protocols.patch is no
longer needed: canInspectURL() now uses a denylist of forbidden
schemes, so custom protocols are allowed by default.

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7893723
Ref: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/7903107

Co-Authored-By: Claude Opus 4.7 <[email protected]>
Skip-Lint: Gerrit is unreachable from this CI environment (requests bot-blocked); CLs verified manually against local upstream git history
Upstream removed the data_decoder include from management_api.h; the
include in electron_management_api_delegate.cc was unused, so drop it.

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7897990#nolint

Co-Authored-By: Claude Opus 4.7 <[email protected]>
Updated the mac_deployment_target assert and documented the new
macOS 13 (Ventura) minimum as a breaking change.

Also suppress macOS 13 deprecation warnings (now errors at the new
deployment target) for APIs that still back documented Electron
features: StoreKit hosted content fields on the inAppPurchase Product
structure, SMLoginItemSetEnabled in app.setLoginItemSettings, and
NSSharingService share menus. The NSSharingService suppression and
rationale mirror upstream's share_menu_controller.mm change.

The deployment target originally changed in https://crrev.com/c/7894518,
which was reverted and relanded as part of this CL.

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7907086

Co-Authored-By: Claude Fable 5 <[email protected]>
@electron-roller electron-roller Bot changed the title chore: bump chromium to 151.0.7893.0 (main) chore: bump chromium to 151.0.7894.0 (main) Jun 16, 2026
VerteDinde and others added 4 commits June 16, 2026 19:57
Address review feedback: drop the redundant tag-range check from the gin
patch and instead define EMBEDDER_CPPHEAP_POINTER_TAG on the libnode GN
target. Node's kNodeCppHeapPointerTag now derives from that define, and
Electron's wrappable_pointer_tags.h static_asserts against it directly,
covering the gin + Electron tag overlap with Node's tag.
@VerteDinde
VerteDinde force-pushed the roller/chromium/main branch from 6f7c193 to b1c1fc9 Compare June 16, 2026 20:01

@deepak1556 deepak1556 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, minor nit on documentation.

Document the static ANGLE linking on Linux as a breaking change.
@jkleinsc

Copy link
Copy Markdown
Member

Merging as CI failure unrelated to PR change.

@jkleinsc
jkleinsc merged commit 611f50a into main Jun 17, 2026
229 of 235 checks passed
@jkleinsc
jkleinsc deleted the roller/chromium/main branch June 17, 2026 16:00
@release-clerk

release-clerk Bot commented Jun 17, 2026

Copy link
Copy Markdown

Release Notes Persisted

Updated Chromium to 151.0.7894.0.

mitchchn pushed a commit to mitchchn/electron that referenced this pull request Jun 19, 2026
* chore: bump chromium in DEPS to 151.0.7888.0

* chore: bump chromium in DEPS to 151.0.7889.0

* chore: bump chromium in DEPS to 151.0.7891.0

* chore: remove upstreamed patches

fix_restore_sdk_inputs_cross-toolchain_deps_for_macos.patch was
absorbed by the upstream switch to `is_mac || is_ios` in the
sdk_inputs cross-toolchain condition.

feat_allow_enabling_extension_panels_on_custom_protocols.patch is no
longer needed: canInspectURL() now uses a denylist of forbidden
schemes, so custom protocols are allowed by default.

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7893723
Ref: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/7903107

Co-Authored-By: Claude Opus 4.7 <[email protected]>
Skip-Lint: Gerrit is unreachable from this CI environment (requests bot-blocked); CLs verified manually against local upstream git history

* 7876303: [ImmersivePlayback] Refactor immersive PiP structures to C++ and JNI

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7876303

Co-Authored-By: Claude Opus 4.7 <[email protected]>
Co-Authored-By: Claude Fable 5 <[email protected]>

* chore: update feat_allow_code_cache_in_custom_schemes.patch for upstream code cache changes

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7903810
Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7870280

Co-Authored-By: Claude Opus 4.7 <[email protected]>
Co-Authored-By: Claude Fable 5 <[email protected]>

* chore: update sccontentsharingpicker patch for upstream capture changes

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7660639
Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7919512

Co-Authored-By: Claude Opus 4.7 <[email protected]>
Co-Authored-By: Claude Fable 5 <[email protected]>

* 7890725: win: Add detection for native move loops

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7890725

Co-Authored-By: Claude Opus 4.7 <[email protected]>
Co-Authored-By: Claude Fable 5 <[email protected]>

* chore: update mas_avoid_private_macos_api_usage.patch for upstream changes

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7894702
Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7891573
Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7921148

Co-Authored-By: Claude Opus 4.7 <[email protected]>
Co-Authored-By: Claude Fable 5 <[email protected]>

* 7900348: [GlowUp] Audit and fix close button sizes

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7900348

Co-Authored-By: Claude Opus 4.7 <[email protected]>
Co-Authored-By: Claude Fable 5 <[email protected]>

* 7902086: extensions: Preinstall Docs Offline via new method on Win/Mac/Linux

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7902086

Co-Authored-By: Claude Opus 4.7 <[email protected]>
Co-Authored-By: Claude Fable 5 <[email protected]>

* chore: update patches

* 7893749: [json_schema_compiler] Introduce custom_impl_schemas in registration template and adjust API targets

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7893749

Co-Authored-By: Claude Opus 4.7 <[email protected]>

* 7897990: Use base::JSONReader directly in extensions management API

Upstream removed the data_decoder include from management_api.h; the
include in electron_management_api_delegate.cc was unused, so drop it.

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7897990#nolint

Co-Authored-By: Claude Opus 4.7 <[email protected]>

* 7897699: Print Preview: Move SetAccessibilityTree() to PrintViewManager

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7897699

Co-Authored-By: Claude Opus 4.7 <[email protected]>

* 7899160: Pass SecurityPrincipal to IsSuitableHost/UseProcessPerSite

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7899160

Co-Authored-By: Claude Opus 4.7 <[email protected]>

* 7910163: [net] Decouple NetModule into a standalone build target

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7910163

Co-Authored-By: Claude Opus 4.7 <[email protected]>

* 7902124: [bedrock]: Activate the standalone Document Picture-in-Picture path

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7902124

Co-Authored-By: Claude Opus 4.7 <[email protected]>
Co-Authored-By: Claude Fable 5 <[email protected]>

* 7907086: Make Chromium require macOS 13

Updated the mac_deployment_target assert and documented the new
macOS 13 (Ventura) minimum as a breaking change.

Also suppress macOS 13 deprecation warnings (now errors at the new
deployment target) for APIs that still back documented Electron
features: StoreKit hosted content fields on the inAppPurchase Product
structure, SMLoginItemSetEnabled in app.setLoginItemSettings, and
NSSharingService share menus. The NSSharingService suppression and
rationale mirror upstream's share_menu_controller.mm change.

The deployment target originally changed in https://crrev.com/c/7894518,
which was reverted and relanded as part of this CL.

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7907086

Co-Authored-By: Claude Fable 5 <[email protected]>

* chore: update patches

* 7907082: [api] Enforce tag range for v8::Object::Wrap

V8 removed CppHeapPointerTag::kDefaultTag under V8_ENABLE_SANDBOX;
Node's cppgc wrappables now use a dedicated Electron-defined tag
(kNodeCppHeapPointerTag) at the first slot of a region gin reserves
for layered embedders.

To guard against tag collisions between the embedders that share a V8
isolate in Electron renderers, this also adds:
- gin::kFirstReservedEmbedderCppHeapPointerTag plus a static_assert that
  gin's own tags stay below it;
- a static_assert that Electron's gin-extending tags stay below it; and
- a static_assert that Node's tag stays below V8's internal tag range.

Ref: https://chromium-review.googlesource.com/c/v8/v8/+/7907082

Co-Authored-By: Claude Fable 5 <[email protected]>

* chore: update patches

* 7929147: Remove the feature kCADisplayLinkInGpuThenBrowser and the related code

The MAS patch's electron/mas.h include sat next to
base/power_monitor/power_observer.h, which this CL removed from
gpu/ipc/service/image_transport_surface_overlay_mac.h. Drop the now-stale
context line; the patch's own additions are unchanged.

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7929147

Co-Authored-By: Claude Fable 5 <[email protected]>

* 7899247: [Connection-Allowlist] Non-optional network_restrictions_id

CreateWebSocket's network_restrictions_id parameter changed from an
optional to a required base::UnguessableToken. Electron's browser-
initiated WebSocket has no associated document, so it passes an empty
(unrestricted) token instead of std::nullopt.

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7899247

Co-Authored-By: Claude Fable 5 <[email protected]>

* chore: bump chromium in DEPS to 151.0.7892.0

* chore: update patches

* chore: bump chromium in DEPS to 151.0.7893.0

* 7869909: Update clang-format binaries and scripts for all platforms.

The clang-format binary pinned in buildtools rolled to a newer LLVM
revision, which formats pointer types in function pointer aliases,
brace initializers, and Objective-C selectors differently. Reformat
the affected Electron sources so the lint job passes with the new
binary.

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7869909

* chore: update patches

* 7885325: Add request_url to TrustedHeaderClient::OnBeforeSendHeaders

Adds the new request_url parameter to Electron's implementations of
network::mojom::TrustedHeaderClient::OnBeforeSendHeaders, matching the
updated interface. The parameter is unused, as in the upstream
extensions implementations.

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7885325

* 7880229: usb_ids: ship lookup table as a Chrome resource instead of linking it in

The USB vendor/product name table is now a brotli-compressed grit
resource (IDR_USB_IDS_DATA) loaded through ResourceBundle instead of
being compiled into the binary. Pack usb_ids_resources.pak into
Electron's resources.pak the same way chrome_paks.gni does so the
resource allowlist check passes and runtime lookups keep working.

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7880229

* 7918151: [Mac] Link vulkan loader dynamically

The Vulkan loader is now built as a shared library on macOS, so
libvulkan.dylib shows up in chromedriver's runtime deps. Add it to the
macOS chromedriver zip manifests, matching how the Linux manifests
already list libvulkan.so.1.

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7918151

* fixup! 7899247: [Connection-Allowlist] Non-optional network_restrictions_id

Mojo cannot serialize an empty UnguessableToken, so passing a default
token to CreateWebSocket crashes the browser process. Use
network::GetNoOpNetworkRestrictionsId(), the upstream-provided ID for
browser-initiated requests with no associated frame.

* 7932888: [//ui] Link ANGLE statically on Linux

ANGLE is now linked into the binary on Linux, so libEGL.so and
libGLESv2.so are no longer produced or shipped. Drop them from the
Linux dist zip manifests.

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7932888

* fixup! 7918151: [Mac] Link vulkan loader dynamically

The MAS chromedriver zips also pick up libvulkan.dylib.

* chore: bump chromium in DEPS to 151.0.7894.0

* chore: update patches

* chore: update patch context for upstream changes

Hunk context drifted in fix_move_autopipsettingshelper_behind_branding_buildflag.patch,
fix_on-screen-keyboard_hides_on_input_blur_in_webview.patch, and
mas_avoid_private_macos_api_usage.patch.patch due to upstream changes.

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7914193
Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7869565
Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7929784

Co-Authored-By: Claude <[email protected]>

* fixup! 7907082: [api] Enforce tag range for v8::Object::Wrap

Address review feedback: drop the redundant tag-range check from the gin
patch and instead define EMBEDDER_CPPHEAP_POINTER_TAG on the libnode GN
target. Node's kNodeCppHeapPointerTag now derives from that define, and
Electron's wrappable_pointer_tags.h static_asserts against it directly,
covering the gin + Electron tag overlap with Node's tag.

* 7929784: content: Remove obsolete surface synchronization logic

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7929784

Co-Authored-By: Claude <[email protected]>

* fixup! 7932888: [//ui] Link ANGLE statically on Linux

Document the static ANGLE linking on Linux as a breaking change.

---------

Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com>
Co-authored-by: chromium-roller[bot] <chromium-roller[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 4.7 <[email protected]>
Co-authored-by: clavin <[email protected]>
Co-authored-by: Keeley Hammond <[email protected]>
Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com>
CliftonH added a commit to CliftonH/electron that referenced this pull request Jul 31, 2026
macOS 12 is no longer supported (electron#51967), so macOS 13 is the minimum
deployment target and the "requires macOS 13" caveats are redundant. Remove
them and the now-unreachable "below 13.0 fallback" note. Addresses review
feedback from jkleinsc.

Co-Authored-By: Claude <[email protected]>
VerteDinde pushed a commit that referenced this pull request Aug 6, 2026
…)` (#51563)

* feat: wire iCloud Keychain into Chromium's FIDO discovery stack

Adds ElectronICloudKeychainAuthenticator (FidoAuthenticator adapter) and ElectronICloudKeychainDiscovery (FidoDiscoveryBase) so that navigator.credentials.create() and .get() route through ElectronPasskeyController when iCloud Keychain is enabled via app.configureWebAuthn().

Also refactors ElectronPasskeyController to support conditional mediation and improves the delegate's CreatePlatformDiscoveries() hook.

Co-Authored-By: Claude <[email protected]>

satisfy linter

refactor: rename iCloudKeychain → platformPasskeys and add select-webauthn-authenticator event

Delete the ElectronPasskeyController abstraction and fold ASAuthorizationController logic directly into ElectronPlatformPasskeysAuthenticator. Rename all iCloudKeychain references to platformPasskeys since ASAuthorizationController serves any Credential Provider Extension, not just iCloud Keychain.

Add a select-webauthn-authenticator session event that fires when both Touch ID and platform passkeys are configured, letting the app choose which authenticator to dispatch to, fixing the dual-prompt bug where both prompts appeared simultaneously.

Co-Authored-By: Claude <[email protected]>

Fix up copyright headers

Guard macOS-only code with build flag, address linting issues

fix: override GetPlatformCredentialInfoForRequest to prevent crash on get()

The base class FidoAuthenticator hits NOTREACHED() if a platform authenticator doesn't override this method. Return kUnknown since ASAuthorizationController has no pre-flight credential query API.

Co-Authored-By: Claude <[email protected]>

Prefer GetGlobalFrameToken() over GetGlobalId(), replace manual v8::Array + CreateDataProperty loop with a std::vector<std::string>, documentation improvement

Add props directly to the select-webauthn-authenticator event rather than emit additional details object

* Fix up unit test and tweak documentation to call out listener requirement for navigator.credentials.get() calls

* fix: use ASPublicKeyCredentialClientData SPI so RPs can verify assertions

Apple's ASAuthorizationController constructs its own clientDataJSON and
signs over it. Without this fix Chromium returned its own (different)
JSON to the page, causing signature verification to fail server-side.

Changes:
- Add Chromium patch: `raw_client_data_json` override field on
  AuthenticatorMakeCredentialResponse / AuthenticatorGetAssertionResponse,
  threaded through authenticator_common_impl.cc.
- Parse challenge+origin from request.client_data_json and pass them to
  Apple via ASPublicKeyCredentialClientData (macOS 13.5+).
- Capture rawClientDataJSON from the credential response and set it on
  the FIDO response so the page receives what Apple actually signed.
- Reject MakeCredential early when ES256 is not in the RP's algorithm
  list (platform passkeys only support ES256).
- Wrap excludedCredentials in @available(macOS 13.5, *) guard.

Verified end-to-end: RP receives assertion where
signatureVerifiesAgainstReturnedJSON: true, challengeMatchesIssued: true.

Co-Authored-By: Claude <[email protected]>

* fix: address PR review nits on authenticator dispatch and isUVPAA

- Guard OnAuthenticatorSelected against repeat invocations. The emit
  callback is a repeating callback, so an app calling it twice would
  otherwise fall through to the unknown-name branch and cancel a
  request we had already dispatched.
- Override IsUserVerifyingPlatformAuthenticatorAvailableOverride so
  that isUVPAA() reports true when platform passkeys are enabled and
  available. The default implementation only reports on Touch ID, so
  apps with only platform passkeys configured would report false and
  most sites would hide their passkey UI.

Co-Authored-By: Claude <[email protected]>

* harden: validate Apple's rawClientDataJSON before returning it to the page

The Chromium patch that added raw_client_data_json lets an authenticator
substitute the clientDataJSON returned to the RP. That override needs to
be trustworthy: WebAuthn's anti-phishing property depends on the origin,
challenge, and type in clientDataJSON accurately reflecting the frame's
real origin, the RP-issued challenge, and the ceremony type.

We build ASPublicKeyCredentialClientData ourselves from Chromium's
trusted client_data_json, so the values we hand Apple are safe. But we
then take Apple's rawClientDataJSON output and forward it verbatim,
which trusts Apple to have echoed those values faithfully. Any framework
bug, type confusion, or SPI drift could silently forward JSON with a
mismatched origin, wrong ceremony type, or unexpected crossOrigin: true.

Add a ValidateAppleClientDataJSON helper that checks Apple's returned
JSON against the expected challenge, origin, type, and crossOrigin
before accepting it as the override. On mismatch, drop the override and
fall back to Chromium's client_data_json — the RP will fail signature
verification (as it should) rather than seeing surprising bytes.

Stash the expected values on ObjCStorage when the SPI is used so the
completion handlers can validate against the same inputs.

Co-Authored-By: Claude <[email protected]>

* test: cover isUVPAA delegate override for platformPasskeys

Add a spec that asserts navigator.credentials.isUserVerifyingPlatform-
AuthenticatorAvailable() returns true when platformPasskeys is enabled,
which exercises IsUserVerifyingPlatformAuthenticatorAvailableOverride
in the delegate. Without the override, Chromium's default only checks
Touch ID and returns false when only platform passkeys are configured.

Co-Authored-By: Claude <[email protected]>

* refactor: use public AuthenticationServices API for clientDataJSON

Drop the private `clientData` KVC setter on the ASAuthorization requests. The
setter is Apple SPI (the public `clientData` property is readonly; the public
setter lives on the web-browser-entitled provider Electron can't use), and
referencing it fails App Store static analysis, so it would have had to be
gated off for MAS builds.

Testing on real hardware showed the SPI is unnecessary for a domain-associated
app: passing the raw challenge to the public
createCredentialRegistrationRequestWithChallenge: /
createCredentialAssertionRequestWithChallenge: initializers makes Apple build
a real clientDataJSON — with our challenge and the associated-domain origin
(https://<rpId>) — and sign over its hash. That JSON comes back on the public
`rawClientDataJSON` getter for both create() and get(), so the RP can verify
the signature against it. Origin override (the SPI's only remaining benefit)
isn't legitimate for a non-browser app anyway: https://<rpId> is the correct
origin for a domain-associated actor.

Capture rawClientDataJSON unconditionally from the public getter and validate
it against the associated-domain origin before returning it to the page. No
private symbols remain, so no MAS gating is required. Also update the Chromium
patch prose to drop the now-inaccurate ASPublicKeyCredentialClientData
reference.

Co-Authored-By: Claude <[email protected]>

* fix: address platform passkey review feedback

- Reject requests whose clientDataJSON challenge can't be parsed instead of
  falling back to client_data_hash (which Apple re-hashes, breaking RP
  verification). Same in MakeCredential and GetAssertion.
- Reject cross-origin (iframe) ceremonies rather than presenting them to the
  RP as same-origin, since the public API can't carry the frame origin — Apple
  always builds a top-level origin: https://<rpId> clientDataJSON.
- Fail the ceremony when Apple's returned clientDataJSON doesn't validate,
  instead of forwarding Chromium's JSON and stranding a keychain credential
  that can never verify RP-side.
- Reset objc_storage_ at the start of each operation so stale expected
  challenge/origin/type can't bleed across requests.
- Log an actionable DevTools message on ASAuthorizationError 1004, and document
  the signing / provisioning-profile / associated-domain (AASA) requirements
  plus the origin: https://<rpId> expectedOrigin note in app.md.

Co-Authored-By: Claude <[email protected]>

* fix: harden excluded-credential mapping and add credential-ID parity check

- Map excluded-credential rejections on every supported macOS version: macOS
  13.5-14 surfaces them as WKErrorDomain code 8, macOS 15+ as
  ASAuthorizationErrorMatchedExcludedCredential (1006). Previously only 1006 was
  handled, so create() with a matching excludeCredentials entry returned
  NotAllowedError instead of the spec-required InvalidStateError on 13.5-14.
  Capture the error domain as a string (not a bool) to distinguish the two.
- Correct the stale "1006 was added in macOS 14" comment — it is macOS 15.
- Add a defense-in-depth check that the credential ID in the attested
  authenticator data matches ASAuthorization...Registration.credentialID,
  failing kAuthenticatorResponseInvalid on mismatch. Mirrors Chromium's
  device/fido/mac/icloud_keychain.mm.
- Clarify that the isUVPAA override reports capability, not configuration: a
  misconfigured (unsigned / no embedded profile / no AASA) app still gets true
  and then fails the ceremony with error 1004.

Co-Authored-By: Claude <[email protected]>

* style: satisfy oxfmt in api-web-authn-spec

Collapse a wrapped executeJavaScript() call onto one line to match oxfmt.

Co-Authored-By: Claude <[email protected]>

* docs: drop macOS 13 version qualifiers for platform passkeys

macOS 12 is no longer supported (#51967), so macOS 13 is the minimum
deployment target and the "requires macOS 13" caveats are redundant. Remove
them and the now-unreachable "below 13.0 fallback" note. Addresses review
feedback from jkleinsc.

Co-Authored-By: Claude <[email protected]>

* chore: update patches

---------

Co-authored-by: Claude <[email protected]>
Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

No open projects
Status: No status

Development

Successfully merging this pull request may close these issues.

6 participants