Skip to content

feat: add FedCm to InitiatorType with DefaultEnumValue fallback - #3426

Merged
kblok merged 2 commits into
masterfrom
fix-issue-3424
Apr 27, 2026
Merged

kblok merged 2 commits into
masterfrom
fix-issue-3424

Conversation

@kblok

@kblok kblok commented Apr 27, 2026

Copy link
Copy Markdown
Member

Summary

Implements the Copilot review suggestion from #3424.

  • Added FedCm enum member with [EnumMember(Value = "FedCM")] to fix JSON deserialization failures when Chrome sends the FedCM initiator type
  • Added [DefaultEnumValue((int)Other)] on InitiatorType so any future unknown CDP initiator types gracefully fall back to Other instead of throwing (same pattern used by TargetType and DOMWorldType)

Verification

  • RequestInitiatorTests: passing

🤖 Generated with Claude Code

kblok and others added 2 commits April 26, 2026 22:43
Add FedCm enum member with [EnumMember(Value = "FedCM")] to prevent
JSON deserialization failures when Chrome sends this initiator type.
Also add [DefaultEnumValue((int)Other)] so any future unknown CDP
initiator types gracefully fall back to Other instead of throwing.

Closes #3424
Removed FedCm enum value from InitiatorType.
@kblok
kblok merged commit 07bae27 into master Apr 27, 2026
16 checks passed
@kblok
kblok deleted the fix-issue-3424 branch April 27, 2026 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant