Skip to content

Commit 07bae27

Browse files
authored
feat: add FedCm to InitiatorType with DefaultEnumValue fallback (#3426)
* feat: add FedCm to InitiatorType and add DefaultEnumValue fallback 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 * Remove FedCm from InitiatorType enum Removed FedCm enum value from InitiatorType.
1 parent 5bc4e3f commit 07bae27

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/PuppeteerSharp/InitiatorType.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ namespace PuppeteerSharp;
88
/// Type of the <see cref="Initiator"/>.
99
/// </summary>
1010
[JsonConverter(typeof(JsonStringEnumMemberConverter<InitiatorType>))]
11+
[DefaultEnumValue((int)Other)]
1112
public enum InitiatorType
1213
{
1314
/// <summary>

0 commit comments

Comments
 (0)