diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs index 729a15a7b..c2ffb4c74 100644 --- a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs +++ b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 130.0.6723.70 +// CHROMIUM VERSION 131.0.6778.86 using System.Runtime.Serialization; namespace CefSharp.DevTools.Accessibility @@ -1521,7 +1521,17 @@ public enum CookieWarningReason /// WarnCrossSiteRedirectDowngradeChangesInclusion /// [EnumMember(Value = ("WarnCrossSiteRedirectDowngradeChangesInclusion"))] - WarnCrossSiteRedirectDowngradeChangesInclusion + WarnCrossSiteRedirectDowngradeChangesInclusion, + /// + /// WarnDeprecationTrialMetadata + /// + [EnumMember(Value = ("WarnDeprecationTrialMetadata"))] + WarnDeprecationTrialMetadata, + /// + /// WarnThirdPartyCookieHeuristic + /// + [EnumMember(Value = ("WarnThirdPartyCookieHeuristic"))] + WarnThirdPartyCookieHeuristic } /// @@ -3550,10 +3560,10 @@ public enum FederatedAuthRequestIssueReason [EnumMember(Value = ("MissingTransientUserActivation"))] MissingTransientUserActivation, /// - /// ReplacedByButtonMode + /// ReplacedByActiveMode /// - [EnumMember(Value = ("ReplacedByButtonMode"))] - ReplacedByButtonMode, + [EnumMember(Value = ("ReplacedByActiveMode"))] + ReplacedByActiveMode, /// /// InvalidFieldsSpecified /// @@ -11183,11 +11193,6 @@ public enum SensorType [EnumMember(Value = ("magnetometer"))] Magnetometer, /// - /// proximity - /// - [EnumMember(Value = ("proximity"))] - Proximity, - /// /// relative-orientation /// [EnumMember(Value = ("relative-orientation"))] @@ -21031,6 +21036,11 @@ public enum PermissionsPolicyFeature [EnumMember(Value = ("direct-sockets"))] DirectSockets, /// + /// direct-sockets-private + /// + [EnumMember(Value = ("direct-sockets-private"))] + DirectSocketsPrivate, + /// /// display-capture /// [EnumMember(Value = ("display-capture"))] @@ -24256,7 +24266,12 @@ public enum BackForwardCacheNotRestoredReason /// RequestedByWebViewClient /// [EnumMember(Value = ("RequestedByWebViewClient"))] - RequestedByWebViewClient + RequestedByWebViewClient, + /// + /// PostMessageByWebViewClient + /// + [EnumMember(Value = ("PostMessageByWebViewClient"))] + PostMessageByWebViewClient } /// @@ -32401,6 +32416,29 @@ public bool? BackupState get; set; } + + /// + /// The credential's user.name property. Equivalent to empty if not set. + /// https://w3c.github.io/webauthn/#dom-publickeycredentialentity-name + /// + [DataMember(Name = ("userName"), IsRequired = (false))] + public string UserName + { + get; + set; + } + + /// + /// The credential's user.displayName property. Equivalent to empty if + /// not set. + /// https://w3c.github.io/webauthn/#dom-publickeycredentialuserentity-displayname + /// + [DataMember(Name = ("userDisplayName"), IsRequired = (false))] + public string UserDisplayName + { + get; + set; + } } /// @@ -32430,6 +32468,62 @@ public CefSharp.DevTools.WebAuthn.Credential Credential } } + /// + /// Triggered when a credential is deleted, e.g. through + /// PublicKeyCredential.signalUnknownCredential(). + /// + [System.Runtime.Serialization.DataContractAttribute] + public class CredentialDeletedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// AuthenticatorId + /// + [DataMember(Name = ("authenticatorId"), IsRequired = (true))] + public string AuthenticatorId + { + get; + private set; + } + + /// + /// CredentialId + /// + [DataMember(Name = ("credentialId"), IsRequired = (true))] + public byte[] CredentialId + { + get; + private set; + } + } + + /// + /// Triggered when a credential is updated, e.g. through + /// PublicKeyCredential.signalCurrentUserDetails(). + /// + [System.Runtime.Serialization.DataContractAttribute] + public class CredentialUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// AuthenticatorId + /// + [DataMember(Name = ("authenticatorId"), IsRequired = (true))] + public string AuthenticatorId + { + get; + private set; + } + + /// + /// Credential + /// + [DataMember(Name = ("credential"), IsRequired = (true))] + public CefSharp.DevTools.WebAuthn.Credential Credential + { + get; + private set; + } + } + /// /// Triggered when a credential is used in a webauthn assertion. /// @@ -33544,7 +33638,17 @@ public enum PrerenderFinalStatus /// OtherPrerenderedPageActivated /// [EnumMember(Value = ("OtherPrerenderedPageActivated"))] - OtherPrerenderedPageActivated + OtherPrerenderedPageActivated, + /// + /// V8OptimizerDisabled + /// + [EnumMember(Value = ("V8OptimizerDisabled"))] + V8OptimizerDisabled, + /// + /// PrerenderFailedDuringPrefetch + /// + [EnumMember(Value = ("PrerenderFailedDuringPrefetch"))] + PrerenderFailedDuringPrefetch } /// @@ -35123,11 +35227,6 @@ public enum ScriptLanguage /// public enum DebugSymbolsType { - /// - /// None - /// - [EnumMember(Value = ("None"))] - None, /// /// SourceMap /// @@ -35767,10 +35866,10 @@ internal string scriptLanguage } /// - /// If the scriptLanguage is WebASsembly, the source of debug symbols for the module. + /// If the scriptLanguage is WebAssembly, the source of debug symbols for the module. /// [DataMember(Name = ("debugSymbols"), IsRequired = (false))] - public CefSharp.DevTools.Debugger.DebugSymbols DebugSymbols + public System.Collections.Generic.IList DebugSymbols { get; private set; @@ -50523,20 +50622,6 @@ public System.Threading.Tasks.Task SetShowScrollBottlene return _client.ExecuteDevToolsMethodAsync("Overlay.setShowScrollBottleneckRects", dict); } - partial void ValidateSetShowWebVitals(bool show); - /// - /// Request that backend shows an overlay with web vital metrics. - /// - /// show - /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task SetShowWebVitalsAsync(bool show) - { - ValidateSetShowWebVitals(show); - var dict = new System.Collections.Generic.Dictionary(); - dict.Add("show", show); - return _client.ExecuteDevToolsMethodAsync("Overlay.setShowWebVitals", dict); - } - partial void ValidateSetShowViewportSizeOnResize(bool show); /// /// Paints viewport size upon main frame resize. @@ -56418,6 +56503,40 @@ public event System.EventHandler CredentialAdded } } + /// + /// Triggered when a credential is deleted, e.g. through + /// PublicKeyCredential.signalUnknownCredential(). + /// + public event System.EventHandler CredentialDeleted + { + add + { + _client.AddEventHandler("WebAuthn.credentialDeleted", value); + } + + remove + { + _client.RemoveEventHandler("WebAuthn.credentialDeleted", value); + } + } + + /// + /// Triggered when a credential is updated, e.g. through + /// PublicKeyCredential.signalCurrentUserDetails(). + /// + public event System.EventHandler CredentialUpdated + { + add + { + _client.AddEventHandler("WebAuthn.credentialUpdated", value); + } + + remove + { + _client.RemoveEventHandler("WebAuthn.credentialUpdated", value); + } + } + /// /// Triggered when a credential is used in a webauthn assertion. /// @@ -58668,19 +58787,41 @@ public System.Threading.Tasks.Task SetAsyncCallStackDept return _client.ExecuteDevToolsMethodAsync("Debugger.setAsyncCallStackDepth", dict); } - partial void ValidateSetBlackboxPatterns(string[] patterns); + partial void ValidateSetBlackboxExecutionContexts(string[] uniqueIds); + /// + /// Replace previous blackbox execution contexts with passed ones. Forces backend to skip + /// stepping/pausing in scripts in these execution contexts. VM will try to leave blackboxed script by + /// performing 'step in' several times, finally resorting to 'step out' if unsuccessful. + /// + /// Array of execution context unique ids for the debugger to ignore. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetBlackboxExecutionContextsAsync(string[] uniqueIds) + { + ValidateSetBlackboxExecutionContexts(uniqueIds); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("uniqueIds", uniqueIds); + return _client.ExecuteDevToolsMethodAsync("Debugger.setBlackboxExecutionContexts", dict); + } + + partial void ValidateSetBlackboxPatterns(string[] patterns, bool? skipAnonymous = null); /// /// Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in /// scripts with url matching one of the patterns. VM will try to leave blackboxed script by /// performing 'step in' several times, finally resorting to 'step out' if unsuccessful. /// /// Array of regexps that will be used to check script url for blackbox state. + /// If true, also ignore scripts with no source url. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task SetBlackboxPatternsAsync(string[] patterns) + public System.Threading.Tasks.Task SetBlackboxPatternsAsync(string[] patterns, bool? skipAnonymous = null) { - ValidateSetBlackboxPatterns(patterns); + ValidateSetBlackboxPatterns(patterns, skipAnonymous); var dict = new System.Collections.Generic.Dictionary(); dict.Add("patterns", patterns); + if (skipAnonymous.HasValue) + { + dict.Add("skipAnonymous", skipAnonymous.Value); + } + return _client.ExecuteDevToolsMethodAsync("Debugger.setBlackboxPatterns", dict); } diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs index 5a3ceba63..3707ba302 100644 --- a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs +++ b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. // // **This code was generated by a tool, do not change directly** -// CHROMIUM VERSION 130.0.6723.70 +// CHROMIUM VERSION 131.0.6778.86 using System.Text.Json.Serialization; namespace CefSharp.DevTools.Accessibility @@ -1434,7 +1434,17 @@ public enum CookieWarningReason /// WarnCrossSiteRedirectDowngradeChangesInclusion /// [JsonPropertyName("WarnCrossSiteRedirectDowngradeChangesInclusion")] - WarnCrossSiteRedirectDowngradeChangesInclusion + WarnCrossSiteRedirectDowngradeChangesInclusion, + /// + /// WarnDeprecationTrialMetadata + /// + [JsonPropertyName("WarnDeprecationTrialMetadata")] + WarnDeprecationTrialMetadata, + /// + /// WarnThirdPartyCookieHeuristic + /// + [JsonPropertyName("WarnThirdPartyCookieHeuristic")] + WarnThirdPartyCookieHeuristic } /// @@ -3206,10 +3216,10 @@ public enum FederatedAuthRequestIssueReason [JsonPropertyName("MissingTransientUserActivation")] MissingTransientUserActivation, /// - /// ReplacedByButtonMode + /// ReplacedByActiveMode /// - [JsonPropertyName("ReplacedByButtonMode")] - ReplacedByButtonMode, + [JsonPropertyName("ReplacedByActiveMode")] + ReplacedByActiveMode, /// /// InvalidFieldsSpecified /// @@ -10457,11 +10467,6 @@ public enum SensorType [JsonPropertyName("magnetometer")] Magnetometer, /// - /// proximity - /// - [JsonPropertyName("proximity")] - Proximity, - /// /// relative-orientation /// [JsonPropertyName("relative-orientation")] @@ -19517,6 +19522,11 @@ public enum PermissionsPolicyFeature [JsonPropertyName("direct-sockets")] DirectSockets, /// + /// direct-sockets-private + /// + [JsonPropertyName("direct-sockets-private")] + DirectSocketsPrivate, + /// /// display-capture /// [JsonPropertyName("display-capture")] @@ -22594,7 +22604,12 @@ public enum BackForwardCacheNotRestoredReason /// RequestedByWebViewClient /// [JsonPropertyName("RequestedByWebViewClient")] - RequestedByWebViewClient + RequestedByWebViewClient, + /// + /// PostMessageByWebViewClient + /// + [JsonPropertyName("PostMessageByWebViewClient")] + PostMessageByWebViewClient } /// @@ -30202,6 +30217,29 @@ public bool? BackupState get; set; } + + /// + /// The credential's user.name property. Equivalent to empty if not set. + /// https://w3c.github.io/webauthn/#dom-publickeycredentialentity-name + /// + [JsonPropertyName("userName")] + public string UserName + { + get; + set; + } + + /// + /// The credential's user.displayName property. Equivalent to empty if + /// not set. + /// https://w3c.github.io/webauthn/#dom-publickeycredentialuserentity-displayname + /// + [JsonPropertyName("userDisplayName")] + public string UserDisplayName + { + get; + set; + } } /// @@ -30234,6 +30272,68 @@ public CefSharp.DevTools.WebAuthn.Credential Credential } } + /// + /// Triggered when a credential is deleted, e.g. through + /// PublicKeyCredential.signalUnknownCredential(). + /// + public class CredentialDeletedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// AuthenticatorId + /// + [JsonInclude] + [JsonPropertyName("authenticatorId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string AuthenticatorId + { + get; + private set; + } + + /// + /// CredentialId + /// + [JsonInclude] + [JsonPropertyName("credentialId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public byte[] CredentialId + { + get; + private set; + } + } + + /// + /// Triggered when a credential is updated, e.g. through + /// PublicKeyCredential.signalCurrentUserDetails(). + /// + public class CredentialUpdatedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// AuthenticatorId + /// + [JsonInclude] + [JsonPropertyName("authenticatorId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string AuthenticatorId + { + get; + private set; + } + + /// + /// Credential + /// + [JsonInclude] + [JsonPropertyName("credential")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.WebAuthn.Credential Credential + { + get; + private set; + } + } + /// /// Triggered when a credential is used in a webauthn assertion. /// @@ -31303,7 +31403,17 @@ public enum PrerenderFinalStatus /// OtherPrerenderedPageActivated /// [JsonPropertyName("OtherPrerenderedPageActivated")] - OtherPrerenderedPageActivated + OtherPrerenderedPageActivated, + /// + /// V8OptimizerDisabled + /// + [JsonPropertyName("V8OptimizerDisabled")] + V8OptimizerDisabled, + /// + /// PrerenderFailedDuringPrefetch + /// + [JsonPropertyName("PrerenderFailedDuringPrefetch")] + PrerenderFailedDuringPrefetch } /// @@ -32800,11 +32910,6 @@ public enum ScriptLanguage /// public enum DebugSymbolsType { - /// - /// None - /// - [JsonPropertyName("None")] - None, /// /// SourceMap /// @@ -33427,11 +33532,11 @@ public CefSharp.DevTools.Debugger.ScriptLanguage? ScriptLanguage } /// - /// If the scriptLanguage is WebASsembly, the source of debug symbols for the module. + /// If the scriptLanguage is WebAssembly, the source of debug symbols for the module. /// [JsonInclude] [JsonPropertyName("debugSymbols")] - public CefSharp.DevTools.Debugger.DebugSymbols DebugSymbols + public System.Collections.Generic.IList DebugSymbols { get; private set; @@ -46865,20 +46970,6 @@ public System.Threading.Tasks.Task SetShowScrollBottlene return _client.ExecuteDevToolsMethodAsync("Overlay.setShowScrollBottleneckRects", dict); } - partial void ValidateSetShowWebVitals(bool show); - /// - /// Request that backend shows an overlay with web vital metrics. - /// - /// show - /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task SetShowWebVitalsAsync(bool show) - { - ValidateSetShowWebVitals(show); - var dict = new System.Collections.Generic.Dictionary(); - dict.Add("show", show); - return _client.ExecuteDevToolsMethodAsync("Overlay.setShowWebVitals", dict); - } - partial void ValidateSetShowViewportSizeOnResize(bool show); /// /// Paints viewport size upon main frame resize. @@ -52207,6 +52298,40 @@ public event System.EventHandler CredentialAdded } } + /// + /// Triggered when a credential is deleted, e.g. through + /// PublicKeyCredential.signalUnknownCredential(). + /// + public event System.EventHandler CredentialDeleted + { + add + { + _client.AddEventHandler("WebAuthn.credentialDeleted", value); + } + + remove + { + _client.RemoveEventHandler("WebAuthn.credentialDeleted", value); + } + } + + /// + /// Triggered when a credential is updated, e.g. through + /// PublicKeyCredential.signalCurrentUserDetails(). + /// + public event System.EventHandler CredentialUpdated + { + add + { + _client.AddEventHandler("WebAuthn.credentialUpdated", value); + } + + remove + { + _client.RemoveEventHandler("WebAuthn.credentialUpdated", value); + } + } + /// /// Triggered when a credential is used in a webauthn assertion. /// @@ -54216,19 +54341,41 @@ public System.Threading.Tasks.Task SetAsyncCallStackDept return _client.ExecuteDevToolsMethodAsync("Debugger.setAsyncCallStackDepth", dict); } - partial void ValidateSetBlackboxPatterns(string[] patterns); + partial void ValidateSetBlackboxExecutionContexts(string[] uniqueIds); + /// + /// Replace previous blackbox execution contexts with passed ones. Forces backend to skip + /// stepping/pausing in scripts in these execution contexts. VM will try to leave blackboxed script by + /// performing 'step in' several times, finally resorting to 'step out' if unsuccessful. + /// + /// Array of execution context unique ids for the debugger to ignore. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetBlackboxExecutionContextsAsync(string[] uniqueIds) + { + ValidateSetBlackboxExecutionContexts(uniqueIds); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("uniqueIds", uniqueIds); + return _client.ExecuteDevToolsMethodAsync("Debugger.setBlackboxExecutionContexts", dict); + } + + partial void ValidateSetBlackboxPatterns(string[] patterns, bool? skipAnonymous = null); /// /// Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in /// scripts with url matching one of the patterns. VM will try to leave blackboxed script by /// performing 'step in' several times, finally resorting to 'step out' if unsuccessful. /// /// Array of regexps that will be used to check script url for blackbox state. + /// If true, also ignore scripts with no source url. /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> - public System.Threading.Tasks.Task SetBlackboxPatternsAsync(string[] patterns) + public System.Threading.Tasks.Task SetBlackboxPatternsAsync(string[] patterns, bool? skipAnonymous = null) { - ValidateSetBlackboxPatterns(patterns); + ValidateSetBlackboxPatterns(patterns, skipAnonymous); var dict = new System.Collections.Generic.Dictionary(); dict.Add("patterns", patterns); + if (skipAnonymous.HasValue) + { + dict.Add("skipAnonymous", skipAnonymous.Value); + } + return _client.ExecuteDevToolsMethodAsync("Debugger.setBlackboxPatterns", dict); }