diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs index 1b954e9f44..5484db5c4f 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 115.0.5790.114 +// CHROMIUM VERSION 116.0.5845.97 using System.Runtime.Serialization; namespace CefSharp.DevTools.Accessibility @@ -3086,7 +3086,99 @@ public enum FederatedAuthRequestIssueReason /// SilentMediationFailure /// [EnumMember(Value = ("SilentMediationFailure"))] - SilentMediationFailure + SilentMediationFailure, + /// + /// ThirdPartyCookiesBlocked + /// + [EnumMember(Value = ("ThirdPartyCookiesBlocked"))] + ThirdPartyCookiesBlocked + } + + /// + /// FederatedAuthUserInfoRequestIssueDetails + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class FederatedAuthUserInfoRequestIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// FederatedAuthUserInfoRequestIssueReason + /// + public CefSharp.DevTools.Audits.FederatedAuthUserInfoRequestIssueReason FederatedAuthUserInfoRequestIssueReason + { + get + { + return (CefSharp.DevTools.Audits.FederatedAuthUserInfoRequestIssueReason)(StringToEnum(typeof(CefSharp.DevTools.Audits.FederatedAuthUserInfoRequestIssueReason), federatedAuthUserInfoRequestIssueReason)); + } + + set + { + this.federatedAuthUserInfoRequestIssueReason = (EnumToString(value)); + } + } + + /// + /// FederatedAuthUserInfoRequestIssueReason + /// + [DataMember(Name = ("federatedAuthUserInfoRequestIssueReason"), IsRequired = (true))] + internal string federatedAuthUserInfoRequestIssueReason + { + get; + set; + } + } + + /// + /// Represents the failure reason when a getUserInfo() call fails. + /// Should be updated alongside FederatedAuthUserInfoRequestResult in + /// third_party/blink/public/mojom/devtools/inspector_issue.mojom. + /// + public enum FederatedAuthUserInfoRequestIssueReason + { + /// + /// NotSameOrigin + /// + [EnumMember(Value = ("NotSameOrigin"))] + NotSameOrigin, + /// + /// NotIframe + /// + [EnumMember(Value = ("NotIframe"))] + NotIframe, + /// + /// NotPotentiallyTrustworthy + /// + [EnumMember(Value = ("NotPotentiallyTrustworthy"))] + NotPotentiallyTrustworthy, + /// + /// NoApiPermission + /// + [EnumMember(Value = ("NoApiPermission"))] + NoApiPermission, + /// + /// NotSignedInWithIdp + /// + [EnumMember(Value = ("NotSignedInWithIdp"))] + NotSignedInWithIdp, + /// + /// NoAccountSharingPermission + /// + [EnumMember(Value = ("NoAccountSharingPermission"))] + NoAccountSharingPermission, + /// + /// InvalidConfigOrWellKnown + /// + [EnumMember(Value = ("InvalidConfigOrWellKnown"))] + InvalidConfigOrWellKnown, + /// + /// InvalidAccountsResponse + /// + [EnumMember(Value = ("InvalidAccountsResponse"))] + InvalidAccountsResponse, + /// + /// NoReturningUserFromFetchedAccounts + /// + [EnumMember(Value = ("NoReturningUserFromFetchedAccounts"))] + NoReturningUserFromFetchedAccounts } /// @@ -3133,6 +3225,113 @@ internal string clientHintIssueReason } } + /// + /// FailedRequestInfo + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class FailedRequestInfo : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The URL that failed to load. + /// + [DataMember(Name = ("url"), IsRequired = (true))] + public string Url + { + get; + set; + } + + /// + /// The failure message for the failed request. + /// + [DataMember(Name = ("failureMessage"), IsRequired = (true))] + public string FailureMessage + { + get; + set; + } + + /// + /// RequestId + /// + [DataMember(Name = ("requestId"), IsRequired = (false))] + public string RequestId + { + get; + set; + } + } + + /// + /// StyleSheetLoadingIssueReason + /// + public enum StyleSheetLoadingIssueReason + { + /// + /// LateImportRule + /// + [EnumMember(Value = ("LateImportRule"))] + LateImportRule, + /// + /// RequestFailed + /// + [EnumMember(Value = ("RequestFailed"))] + RequestFailed + } + + /// + /// This issue warns when a referenced stylesheet couldn't be loaded. + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class StylesheetLoadingIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Source code position that referenced the failing stylesheet. + /// + [DataMember(Name = ("sourceCodeLocation"), IsRequired = (true))] + public CefSharp.DevTools.Audits.SourceCodeLocation SourceCodeLocation + { + get; + set; + } + + /// + /// Reason why the stylesheet couldn't be loaded. + /// + public CefSharp.DevTools.Audits.StyleSheetLoadingIssueReason StyleSheetLoadingIssueReason + { + get + { + return (CefSharp.DevTools.Audits.StyleSheetLoadingIssueReason)(StringToEnum(typeof(CefSharp.DevTools.Audits.StyleSheetLoadingIssueReason), styleSheetLoadingIssueReason)); + } + + set + { + this.styleSheetLoadingIssueReason = (EnumToString(value)); + } + } + + /// + /// Reason why the stylesheet couldn't be loaded. + /// + [DataMember(Name = ("styleSheetLoadingIssueReason"), IsRequired = (true))] + internal string styleSheetLoadingIssueReason + { + get; + set; + } + + /// + /// Contains additional info when the failure was due to a request. + /// + [DataMember(Name = ("failedRequestInfo"), IsRequired = (false))] + public CefSharp.DevTools.Audits.FailedRequestInfo FailedRequestInfo + { + get; + set; + } + } + /// /// A unique identifier for the type of issue. Each type may use one of the /// optional fields in InspectorIssueDetails to convey more specific @@ -3219,7 +3418,17 @@ public enum InspectorIssueCode /// BounceTrackingIssue /// [EnumMember(Value = ("BounceTrackingIssue"))] - BounceTrackingIssue + BounceTrackingIssue, + /// + /// StylesheetLoadingIssue + /// + [EnumMember(Value = ("StylesheetLoadingIssue"))] + StylesheetLoadingIssue, + /// + /// FederatedAuthUserInfoRequestIssue + /// + [EnumMember(Value = ("FederatedAuthUserInfoRequestIssue"))] + FederatedAuthUserInfoRequestIssue } /// @@ -3389,6 +3598,26 @@ public CefSharp.DevTools.Audits.BounceTrackingIssueDetails BounceTrackingIssueDe get; set; } + + /// + /// StylesheetLoadingIssueDetails + /// + [DataMember(Name = ("stylesheetLoadingIssueDetails"), IsRequired = (false))] + public CefSharp.DevTools.Audits.StylesheetLoadingIssueDetails StylesheetLoadingIssueDetails + { + get; + set; + } + + /// + /// FederatedAuthUserInfoRequestIssueDetails + /// + [DataMember(Name = ("federatedAuthUserInfoRequestIssueDetails"), IsRequired = (false))] + public CefSharp.DevTools.Audits.FederatedAuthUserInfoRequestIssueDetails FederatedAuthUserInfoRequestIssueDetails + { + get; + set; + } } /// @@ -3521,6 +3750,50 @@ public string Cvc set; } } + + /// + /// AddressField + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class AddressField : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// address field name, for example GIVEN_NAME. + /// + [DataMember(Name = ("name"), IsRequired = (true))] + public string Name + { + get; + set; + } + + /// + /// address field name, for example Jon Doe. + /// + [DataMember(Name = ("value"), IsRequired = (true))] + public string Value + { + get; + set; + } + } + + /// + /// Address + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class Address : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// fields and values defining a test address. + /// + [DataMember(Name = ("fields"), IsRequired = (true))] + public System.Collections.Generic.IList Fields + { + get; + set; + } + } } namespace CefSharp.DevTools.BackgroundService @@ -9610,7 +9883,7 @@ internal string format } /// - /// Compression quality from range [0..100] (jpeg only). + /// Compression quality from range [0..100] (jpeg and webp only). /// [DataMember(Name = ("quality"), IsRequired = (false))] public int? Quality @@ -11681,6 +11954,16 @@ public double PushEnd set; } + /// + /// Started receiving response headers. + /// + [DataMember(Name = ("receiveHeadersStart"), IsRequired = (true))] + public double ReceiveHeadersStart + { + get; + set; + } + /// /// Finished receiving response headers. /// @@ -14949,6 +15232,76 @@ public string ReportOnlyReportingEndpoint } } + /// + /// ContentSecurityPolicySource + /// + public enum ContentSecurityPolicySource + { + /// + /// HTTP + /// + [EnumMember(Value = ("HTTP"))] + HTTP, + /// + /// Meta + /// + [EnumMember(Value = ("Meta"))] + Meta + } + + /// + /// ContentSecurityPolicyStatus + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class ContentSecurityPolicyStatus : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// EffectiveDirectives + /// + [DataMember(Name = ("effectiveDirectives"), IsRequired = (true))] + public string EffectiveDirectives + { + get; + set; + } + + /// + /// IsEnforced + /// + [DataMember(Name = ("isEnforced"), IsRequired = (true))] + public bool IsEnforced + { + get; + set; + } + + /// + /// Source + /// + public CefSharp.DevTools.Network.ContentSecurityPolicySource Source + { + get + { + return (CefSharp.DevTools.Network.ContentSecurityPolicySource)(StringToEnum(typeof(CefSharp.DevTools.Network.ContentSecurityPolicySource), source)); + } + + set + { + this.source = (EnumToString(value)); + } + } + + /// + /// Source + /// + [DataMember(Name = ("source"), IsRequired = (true))] + internal string source + { + get; + set; + } + } + /// /// SecurityIsolationStatus /// @@ -14974,6 +15327,16 @@ public CefSharp.DevTools.Network.CrossOriginEmbedderPolicyStatus Coep get; set; } + + /// + /// Csp + /// + [DataMember(Name = ("csp"), IsRequired = (false))] + public System.Collections.Generic.IList Csp + { + get; + set; + } } /// @@ -16568,6 +16931,11 @@ public enum TrustTokenOperationDoneStatus [EnumMember(Value = ("InvalidArgument"))] InvalidArgument, /// + /// MissingIssuerKeys + /// + [EnumMember(Value = ("MissingIssuerKeys"))] + MissingIssuerKeys, + /// /// FailedPrecondition /// [EnumMember(Value = ("FailedPrecondition"))] @@ -18344,11 +18712,6 @@ public enum PermissionsPolicyFeature [EnumMember(Value = ("ch-ua-mobile"))] ChUaMobile, /// - /// ch-ua-full - /// - [EnumMember(Value = ("ch-ua-full"))] - ChUaFull, - /// /// ch-ua-full-version /// [EnumMember(Value = ("ch-ua-full-version"))] @@ -18364,11 +18727,6 @@ public enum PermissionsPolicyFeature [EnumMember(Value = ("ch-ua-platform-version"))] ChUaPlatformVersion, /// - /// ch-ua-reduced - /// - [EnumMember(Value = ("ch-ua-reduced"))] - ChUaReduced, - /// /// ch-ua-wow64 /// [EnumMember(Value = ("ch-ua-wow64"))] @@ -20568,6 +20926,16 @@ public enum BackForwardCacheNotRestoredReason [EnumMember(Value = ("FencedFramesEmbedder"))] FencedFramesEmbedder, /// + /// CookieDisabled + /// + [EnumMember(Value = ("CookieDisabled"))] + CookieDisabled, + /// + /// HTTPAuthRequired + /// + [EnumMember(Value = ("HTTPAuthRequired"))] + HTTPAuthRequired, + /// /// WebSocket /// [EnumMember(Value = ("WebSocket"))] @@ -20793,10 +21161,25 @@ public enum BackForwardCacheNotRestoredReason [EnumMember(Value = ("Dummy"))] Dummy, /// - /// AuthorizationHeader + /// JsNetworkRequestReceivedCacheControlNoStoreResource /// - [EnumMember(Value = ("AuthorizationHeader"))] - AuthorizationHeader, + [EnumMember(Value = ("JsNetworkRequestReceivedCacheControlNoStoreResource"))] + JsNetworkRequestReceivedCacheControlNoStoreResource, + /// + /// WebRTCSticky + /// + [EnumMember(Value = ("WebRTCSticky"))] + WebRTCSticky, + /// + /// WebTransportSticky + /// + [EnumMember(Value = ("WebTransportSticky"))] + WebTransportSticky, + /// + /// WebSocketSticky + /// + [EnumMember(Value = ("WebSocketSticky"))] + WebSocketSticky, /// /// ContentSecurityHandler /// @@ -28541,7 +28924,17 @@ public enum PrerenderFinalStatus /// MemoryPressureAfterTriggered /// [EnumMember(Value = ("MemoryPressureAfterTriggered"))] - MemoryPressureAfterTriggered + MemoryPressureAfterTriggered, + /// + /// PrerenderingDisabledByDevTools + /// + [EnumMember(Value = ("PrerenderingDisabledByDevTools"))] + PrerenderingDisabledByDevTools, + /// + /// ResourceLoadBlockedByClient + /// + [EnumMember(Value = ("ResourceLoadBlockedByClient"))] + ResourceLoadBlockedByClient } /// @@ -34052,6 +34445,20 @@ public System.Threading.Tasks.Task TriggerAsync(int fiel return _client.ExecuteDevToolsMethodAsync("Autofill.trigger", dict); } + + partial void ValidateSetAddresses(System.Collections.Generic.IList addresses); + /// + /// Set addresses so that developers can verify their forms implementation. + /// + /// addresses + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetAddressesAsync(System.Collections.Generic.IList addresses) + { + ValidateSetAddresses(addresses); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("addresses", addresses.Select(x => x.ToDictionary())); + return _client.ExecuteDevToolsMethodAsync("Autofill.setAddresses", dict); + } } } @@ -46445,6 +46852,26 @@ public System.Threading.Tasks.Task SetInterceptFileChoos dict.Add("enabled", enabled); return _client.ExecuteDevToolsMethodAsync("Page.setInterceptFileChooserDialog", dict); } + + partial void ValidateSetPrerenderingAllowed(bool isAllowed); + /// + /// Enable/disable prerendering manually. + /// + /// This command is a short-term solution for https://crbug.com/1440085. + /// See https://docs.google.com/document/d/12HVmFxYj5Jc-eJr5OmWsa2bqTJsbgGLKI6ZIyx0_wpA + /// for more details. + /// + /// TODO(https://crbug.com/1440085): Remove this once Puppeteer supports tab targets. + /// + /// isAllowed + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetPrerenderingAllowedAsync(bool isAllowed) + { + ValidateSetPrerenderingAllowed(isAllowed); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("isAllowed", isAllowed); + return _client.ExecuteDevToolsMethodAsync("Page.setPrerenderingAllowed", dict); + } } } @@ -53444,7 +53871,7 @@ public System.Threading.Tasks.Task AwaitPromiseAsync(strin /// Whether to throw an exception if side effect cannot be ruled out during evaluation. /// An alternative way to specify the execution context to call function on.Compared to contextId that may be reused across processes, this is guaranteed to besystem-unique, so it can be used to prevent accidental function callin context different than intended (e.g. as a result of navigation across processboundaries).This is mutually exclusive with `executionContextId`. /// Deprecated. Use `serializationOptions: {serialization:"deep"}` instead.Whether the result should contain `webDriverValue`, serialized according tohttps://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, butresulting `objectId` is still provided. - /// Specifies the result serialization. If provided, overrides`returnByValue` and `generateWebDriverValue`. + /// Specifies the result serialization. If provided, overrides`generatePreview`, `returnByValue` and `generateWebDriverValue`. /// returns System.Threading.Tasks.Task<CallFunctionOnResponse> public System.Threading.Tasks.Task CallFunctionOnAsync(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null, string uniqueContextId = null, bool? generateWebDriverValue = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = null) { @@ -53595,7 +54022,7 @@ public System.Threading.Tasks.Task EnableAsync() /// The Content Security Policy (CSP) for the target might block 'unsafe-eval'which includes eval(), Function(), setTimeout() and setInterval()when called with non-callable arguments. This flag bypasses CSP for thisevaluation and allows unsafe-eval. Defaults to true. /// An alternative way to specify the execution context to evaluate in.Compared to contextId that may be reused across processes, this is guaranteed to besystem-unique, so it can be used to prevent accidental evaluation of the expressionin context different than intended (e.g. as a result of navigation across processboundaries).This is mutually exclusive with `contextId`. /// Deprecated. Use `serializationOptions: {serialization:"deep"}` instead.Whether the result should contain `webDriverValue`, serializedaccording tohttps://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, butresulting `objectId` is still provided. - /// Specifies the result serialization. If provided, overrides`returnByValue` and `generateWebDriverValue`. + /// Specifies the result serialization. If provided, overrides`generatePreview`, `returnByValue` and `generateWebDriverValue`. /// returns System.Threading.Tasks.Task<EvaluateResponse> public System.Threading.Tasks.Task EvaluateAsync(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, double? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null, bool? generateWebDriverValue = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = null) { diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs index 6290b07310..76e6d71a52 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 115.0.5790.114 +// CHROMIUM VERSION 116.0.5845.97 using System.Text.Json.Serialization; namespace CefSharp.DevTools.Accessibility @@ -2790,7 +2790,82 @@ public enum FederatedAuthRequestIssueReason /// SilentMediationFailure /// [JsonPropertyName("SilentMediationFailure")] - SilentMediationFailure + SilentMediationFailure, + /// + /// ThirdPartyCookiesBlocked + /// + [JsonPropertyName("ThirdPartyCookiesBlocked")] + ThirdPartyCookiesBlocked + } + + /// + /// FederatedAuthUserInfoRequestIssueDetails + /// + public partial class FederatedAuthUserInfoRequestIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// FederatedAuthUserInfoRequestIssueReason + /// + [JsonPropertyName("federatedAuthUserInfoRequestIssueReason")] + public CefSharp.DevTools.Audits.FederatedAuthUserInfoRequestIssueReason FederatedAuthUserInfoRequestIssueReason + { + get; + set; + } + } + + /// + /// Represents the failure reason when a getUserInfo() call fails. + /// Should be updated alongside FederatedAuthUserInfoRequestResult in + /// third_party/blink/public/mojom/devtools/inspector_issue.mojom. + /// + public enum FederatedAuthUserInfoRequestIssueReason + { + /// + /// NotSameOrigin + /// + [JsonPropertyName("NotSameOrigin")] + NotSameOrigin, + /// + /// NotIframe + /// + [JsonPropertyName("NotIframe")] + NotIframe, + /// + /// NotPotentiallyTrustworthy + /// + [JsonPropertyName("NotPotentiallyTrustworthy")] + NotPotentiallyTrustworthy, + /// + /// NoApiPermission + /// + [JsonPropertyName("NoApiPermission")] + NoApiPermission, + /// + /// NotSignedInWithIdp + /// + [JsonPropertyName("NotSignedInWithIdp")] + NotSignedInWithIdp, + /// + /// NoAccountSharingPermission + /// + [JsonPropertyName("NoAccountSharingPermission")] + NoAccountSharingPermission, + /// + /// InvalidConfigOrWellKnown + /// + [JsonPropertyName("InvalidConfigOrWellKnown")] + InvalidConfigOrWellKnown, + /// + /// InvalidAccountsResponse + /// + [JsonPropertyName("InvalidAccountsResponse")] + InvalidAccountsResponse, + /// + /// NoReturningUserFromFetchedAccounts + /// + [JsonPropertyName("NoReturningUserFromFetchedAccounts")] + NoReturningUserFromFetchedAccounts } /// @@ -2821,6 +2896,98 @@ public CefSharp.DevTools.Audits.ClientHintIssueReason ClientHintIssueReason } } + /// + /// FailedRequestInfo + /// + public partial class FailedRequestInfo : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// The URL that failed to load. + /// + [JsonPropertyName("url")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Url + { + get; + set; + } + + /// + /// The failure message for the failed request. + /// + [JsonPropertyName("failureMessage")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string FailureMessage + { + get; + set; + } + + /// + /// RequestId + /// + [JsonPropertyName("requestId")] + public string RequestId + { + get; + set; + } + } + + /// + /// StyleSheetLoadingIssueReason + /// + public enum StyleSheetLoadingIssueReason + { + /// + /// LateImportRule + /// + [JsonPropertyName("LateImportRule")] + LateImportRule, + /// + /// RequestFailed + /// + [JsonPropertyName("RequestFailed")] + RequestFailed + } + + /// + /// This issue warns when a referenced stylesheet couldn't be loaded. + /// + public partial class StylesheetLoadingIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Source code position that referenced the failing stylesheet. + /// + [JsonPropertyName("sourceCodeLocation")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Audits.SourceCodeLocation SourceCodeLocation + { + get; + set; + } + + /// + /// Reason why the stylesheet couldn't be loaded. + /// + [JsonPropertyName("styleSheetLoadingIssueReason")] + public CefSharp.DevTools.Audits.StyleSheetLoadingIssueReason StyleSheetLoadingIssueReason + { + get; + set; + } + + /// + /// Contains additional info when the failure was due to a request. + /// + [JsonPropertyName("failedRequestInfo")] + public CefSharp.DevTools.Audits.FailedRequestInfo FailedRequestInfo + { + get; + set; + } + } + /// /// A unique identifier for the type of issue. Each type may use one of the /// optional fields in InspectorIssueDetails to convey more specific @@ -2907,7 +3074,17 @@ public enum InspectorIssueCode /// BounceTrackingIssue /// [JsonPropertyName("BounceTrackingIssue")] - BounceTrackingIssue + BounceTrackingIssue, + /// + /// StylesheetLoadingIssue + /// + [JsonPropertyName("StylesheetLoadingIssue")] + StylesheetLoadingIssue, + /// + /// FederatedAuthUserInfoRequestIssue + /// + [JsonPropertyName("FederatedAuthUserInfoRequestIssue")] + FederatedAuthUserInfoRequestIssue } /// @@ -3076,6 +3253,26 @@ public CefSharp.DevTools.Audits.BounceTrackingIssueDetails BounceTrackingIssueDe get; set; } + + /// + /// StylesheetLoadingIssueDetails + /// + [JsonPropertyName("stylesheetLoadingIssueDetails")] + public CefSharp.DevTools.Audits.StylesheetLoadingIssueDetails StylesheetLoadingIssueDetails + { + get; + set; + } + + /// + /// FederatedAuthUserInfoRequestIssueDetails + /// + [JsonPropertyName("federatedAuthUserInfoRequestIssueDetails")] + public CefSharp.DevTools.Audits.FederatedAuthUserInfoRequestIssueDetails FederatedAuthUserInfoRequestIssueDetails + { + get; + set; + } } /// @@ -3197,6 +3394,51 @@ public string Cvc set; } } + + /// + /// AddressField + /// + public partial class AddressField : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// address field name, for example GIVEN_NAME. + /// + [JsonPropertyName("name")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Name + { + get; + set; + } + + /// + /// address field name, for example Jon Doe. + /// + [JsonPropertyName("value")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Value + { + get; + set; + } + } + + /// + /// Address + /// + public partial class Address : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// fields and values defining a test address. + /// + [JsonPropertyName("fields")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList Fields + { + get; + set; + } + } } namespace CefSharp.DevTools.BackgroundService @@ -9046,7 +9288,7 @@ public CefSharp.DevTools.HeadlessExperimental.ScreenshotParamsFormat? Format } /// - /// Compression quality from range [0..100] (jpeg only). + /// Compression quality from range [0..100] (jpeg and webp only). /// [JsonPropertyName("quality")] public int? Quality @@ -11016,6 +11258,16 @@ public double PushEnd set; } + /// + /// Started receiving response headers. + /// + [JsonPropertyName("receiveHeadersStart")] + public double ReceiveHeadersStart + { + get; + set; + } + /// /// Finished receiving response headers. /// @@ -13806,6 +14058,60 @@ public string ReportOnlyReportingEndpoint } } + /// + /// ContentSecurityPolicySource + /// + public enum ContentSecurityPolicySource + { + /// + /// HTTP + /// + [JsonPropertyName("HTTP")] + HTTP, + /// + /// Meta + /// + [JsonPropertyName("Meta")] + Meta + } + + /// + /// ContentSecurityPolicyStatus + /// + public partial class ContentSecurityPolicyStatus : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// EffectiveDirectives + /// + [JsonPropertyName("effectiveDirectives")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string EffectiveDirectives + { + get; + set; + } + + /// + /// IsEnforced + /// + [JsonPropertyName("isEnforced")] + public bool IsEnforced + { + get; + set; + } + + /// + /// Source + /// + [JsonPropertyName("source")] + public CefSharp.DevTools.Network.ContentSecurityPolicySource Source + { + get; + set; + } + } + /// /// SecurityIsolationStatus /// @@ -13830,6 +14136,16 @@ public CefSharp.DevTools.Network.CrossOriginEmbedderPolicyStatus Coep get; set; } + + /// + /// Csp + /// + [JsonPropertyName("csp")] + public System.Collections.Generic.IList Csp + { + get; + set; + } } /// @@ -15406,6 +15722,11 @@ public enum TrustTokenOperationDoneStatus [JsonPropertyName("InvalidArgument")] InvalidArgument, /// + /// MissingIssuerKeys + /// + [JsonPropertyName("MissingIssuerKeys")] + MissingIssuerKeys, + /// /// FailedPrecondition /// [JsonPropertyName("FailedPrecondition")] @@ -17087,11 +17408,6 @@ public enum PermissionsPolicyFeature [JsonPropertyName("ch-ua-mobile")] ChUaMobile, /// - /// ch-ua-full - /// - [JsonPropertyName("ch-ua-full")] - ChUaFull, - /// /// ch-ua-full-version /// [JsonPropertyName("ch-ua-full-version")] @@ -17107,11 +17423,6 @@ public enum PermissionsPolicyFeature [JsonPropertyName("ch-ua-platform-version")] ChUaPlatformVersion, /// - /// ch-ua-reduced - /// - [JsonPropertyName("ch-ua-reduced")] - ChUaReduced, - /// /// ch-ua-wow64 /// [JsonPropertyName("ch-ua-wow64")] @@ -19158,6 +19469,16 @@ public enum BackForwardCacheNotRestoredReason [JsonPropertyName("FencedFramesEmbedder")] FencedFramesEmbedder, /// + /// CookieDisabled + /// + [JsonPropertyName("CookieDisabled")] + CookieDisabled, + /// + /// HTTPAuthRequired + /// + [JsonPropertyName("HTTPAuthRequired")] + HTTPAuthRequired, + /// /// WebSocket /// [JsonPropertyName("WebSocket")] @@ -19383,10 +19704,25 @@ public enum BackForwardCacheNotRestoredReason [JsonPropertyName("Dummy")] Dummy, /// - /// AuthorizationHeader + /// JsNetworkRequestReceivedCacheControlNoStoreResource + /// + [JsonPropertyName("JsNetworkRequestReceivedCacheControlNoStoreResource")] + JsNetworkRequestReceivedCacheControlNoStoreResource, + /// + /// WebRTCSticky + /// + [JsonPropertyName("WebRTCSticky")] + WebRTCSticky, + /// + /// WebTransportSticky /// - [JsonPropertyName("AuthorizationHeader")] - AuthorizationHeader, + [JsonPropertyName("WebTransportSticky")] + WebTransportSticky, + /// + /// WebSocketSticky + /// + [JsonPropertyName("WebSocketSticky")] + WebSocketSticky, /// /// ContentSecurityHandler /// @@ -26655,7 +26991,17 @@ public enum PrerenderFinalStatus /// MemoryPressureAfterTriggered /// [JsonPropertyName("MemoryPressureAfterTriggered")] - MemoryPressureAfterTriggered + MemoryPressureAfterTriggered, + /// + /// PrerenderingDisabledByDevTools + /// + [JsonPropertyName("PrerenderingDisabledByDevTools")] + PrerenderingDisabledByDevTools, + /// + /// ResourceLoadBlockedByClient + /// + [JsonPropertyName("ResourceLoadBlockedByClient")] + ResourceLoadBlockedByClient } /// @@ -31843,6 +32189,20 @@ public System.Threading.Tasks.Task TriggerAsync(int fiel return _client.ExecuteDevToolsMethodAsync("Autofill.trigger", dict); } + + partial void ValidateSetAddresses(System.Collections.Generic.IList addresses); + /// + /// Set addresses so that developers can verify their forms implementation. + /// + /// addresses + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetAddressesAsync(System.Collections.Generic.IList addresses) + { + ValidateSetAddresses(addresses); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("addresses", addresses.Select(x => x.ToDictionary())); + return _client.ExecuteDevToolsMethodAsync("Autofill.setAddresses", dict); + } } } @@ -42989,6 +43349,26 @@ public System.Threading.Tasks.Task SetInterceptFileChoos dict.Add("enabled", enabled); return _client.ExecuteDevToolsMethodAsync("Page.setInterceptFileChooserDialog", dict); } + + partial void ValidateSetPrerenderingAllowed(bool isAllowed); + /// + /// Enable/disable prerendering manually. + /// + /// This command is a short-term solution for https://crbug.com/1440085. + /// See https://docs.google.com/document/d/12HVmFxYj5Jc-eJr5OmWsa2bqTJsbgGLKI6ZIyx0_wpA + /// for more details. + /// + /// TODO(https://crbug.com/1440085): Remove this once Puppeteer supports tab targets. + /// + /// isAllowed + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetPrerenderingAllowedAsync(bool isAllowed) + { + ValidateSetPrerenderingAllowed(isAllowed); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("isAllowed", isAllowed); + return _client.ExecuteDevToolsMethodAsync("Page.setPrerenderingAllowed", dict); + } } } @@ -49268,7 +49648,7 @@ public System.Threading.Tasks.Task AwaitPromiseAsync(strin /// Whether to throw an exception if side effect cannot be ruled out during evaluation. /// An alternative way to specify the execution context to call function on.Compared to contextId that may be reused across processes, this is guaranteed to besystem-unique, so it can be used to prevent accidental function callin context different than intended (e.g. as a result of navigation across processboundaries).This is mutually exclusive with `executionContextId`. /// Deprecated. Use `serializationOptions: {serialization:"deep"}` instead.Whether the result should contain `webDriverValue`, serialized according tohttps://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, butresulting `objectId` is still provided. - /// Specifies the result serialization. If provided, overrides`returnByValue` and `generateWebDriverValue`. + /// Specifies the result serialization. If provided, overrides`generatePreview`, `returnByValue` and `generateWebDriverValue`. /// returns System.Threading.Tasks.Task<CallFunctionOnResponse> public System.Threading.Tasks.Task CallFunctionOnAsync(string functionDeclaration, string objectId = null, System.Collections.Generic.IList arguments = null, bool? silent = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, int? executionContextId = null, string objectGroup = null, bool? throwOnSideEffect = null, string uniqueContextId = null, bool? generateWebDriverValue = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = null) { @@ -49419,7 +49799,7 @@ public System.Threading.Tasks.Task EnableAsync() /// The Content Security Policy (CSP) for the target might block 'unsafe-eval'which includes eval(), Function(), setTimeout() and setInterval()when called with non-callable arguments. This flag bypasses CSP for thisevaluation and allows unsafe-eval. Defaults to true. /// An alternative way to specify the execution context to evaluate in.Compared to contextId that may be reused across processes, this is guaranteed to besystem-unique, so it can be used to prevent accidental evaluation of the expressionin context different than intended (e.g. as a result of navigation across processboundaries).This is mutually exclusive with `contextId`. /// Deprecated. Use `serializationOptions: {serialization:"deep"}` instead.Whether the result should contain `webDriverValue`, serializedaccording tohttps://w3c.github.io/webdriver-bidi. This is mutually exclusive with `returnByValue`, butresulting `objectId` is still provided. - /// Specifies the result serialization. If provided, overrides`returnByValue` and `generateWebDriverValue`. + /// Specifies the result serialization. If provided, overrides`generatePreview`, `returnByValue` and `generateWebDriverValue`. /// returns System.Threading.Tasks.Task<EvaluateResponse> public System.Threading.Tasks.Task EvaluateAsync(string expression, string objectGroup = null, bool? includeCommandLineAPI = null, bool? silent = null, int? contextId = null, bool? returnByValue = null, bool? generatePreview = null, bool? userGesture = null, bool? awaitPromise = null, bool? throwOnSideEffect = null, double? timeout = null, bool? disableBreaks = null, bool? replMode = null, bool? allowUnsafeEvalBlockedByCSP = null, string uniqueContextId = null, bool? generateWebDriverValue = null, CefSharp.DevTools.Runtime.SerializationOptions serializationOptions = null) {