diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs index 5484db5c4f..a2b3cc9a30 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 116.0.5845.97 +// CHROMIUM VERSION 117.0.5938.92 using System.Runtime.Serialization; namespace CefSharp.DevTools.Accessibility @@ -267,7 +267,7 @@ public bool? Superseded } /// - /// The native markup source for this value, e.g. a <label> element. + /// The native markup source for this value, e.g. a `<label>` element. /// public CefSharp.DevTools.Accessibility.AXValueNativeSourceType? NativeSource { @@ -283,7 +283,7 @@ public CefSharp.DevTools.Accessibility.AXValueNativeSourceType? NativeSource } /// - /// The native markup source for this value, e.g. a <label> element. + /// The native markup source for this value, e.g. a `<label>` element. /// [DataMember(Name = ("nativeSource"), IsRequired = (false))] internal string nativeSource @@ -1334,7 +1334,12 @@ public enum CookieExclusionReason /// ExcludeThirdPartyCookieBlockedInFirstPartySet /// [EnumMember(Value = ("ExcludeThirdPartyCookieBlockedInFirstPartySet"))] - ExcludeThirdPartyCookieBlockedInFirstPartySet + ExcludeThirdPartyCookieBlockedInFirstPartySet, + /// + /// ExcludeThirdPartyPhaseout + /// + [EnumMember(Value = ("ExcludeThirdPartyPhaseout"))] + ExcludeThirdPartyPhaseout } /// @@ -1391,7 +1396,12 @@ public enum CookieWarningReason /// WarnDomainNonASCII /// [EnumMember(Value = ("WarnDomainNonASCII"))] - WarnDomainNonASCII + WarnDomainNonASCII, + /// + /// WarnThirdPartyPhaseout + /// + [EnumMember(Value = ("WarnThirdPartyPhaseout"))] + WarnThirdPartyPhaseout } /// @@ -2522,7 +2532,12 @@ public enum AttributionReportingIssueType /// NoWebOrOsSupport /// [EnumMember(Value = ("NoWebOrOsSupport"))] - NoWebOrOsSupport + NoWebOrOsSupport, + /// + /// NavigationRegistrationWithoutTransientUserActivation + /// + [EnumMember(Value = ("NavigationRegistrationWithoutTransientUserActivation"))] + NavigationRegistrationWithoutTransientUserActivation } /// @@ -2734,7 +2749,12 @@ public enum GenericIssueErrorType /// FormInputHasWrongButWellIntendedAutocompleteValueError /// [EnumMember(Value = ("FormInputHasWrongButWellIntendedAutocompleteValueError"))] - FormInputHasWrongButWellIntendedAutocompleteValueError + FormInputHasWrongButWellIntendedAutocompleteValueError, + /// + /// ResponseWasBlockedByORB + /// + [EnumMember(Value = ("ResponseWasBlockedByORB"))] + ResponseWasBlockedByORB } /// @@ -2798,6 +2818,16 @@ public string ViolatingNodeAttribute get; set; } + + /// + /// Request + /// + [DataMember(Name = ("request"), IsRequired = (false))] + public CefSharp.DevTools.Audits.AffectedRequest Request + { + get; + set; + } } /// @@ -4975,7 +5005,7 @@ public bool IsInline /// /// Whether this stylesheet is mutable. Inline stylesheets become mutable /// after they have been modified via CSSOM API. - /// <link> element's stylesheets become mutable only if DevTools modifies them. + /// `<link>` element's stylesheets become mutable only if DevTools modifies them. /// Constructed stylesheets (new CSSStyleSheet()) are mutable immediately after creation. /// [DataMember(Name = ("isMutable"), IsRequired = (true))] @@ -5184,6 +5214,70 @@ public System.Collections.Generic.IList Scopes get; set; } + + /// + /// The array keeps the types of ancestor CSSRules from the innermost going outwards. + /// + public CefSharp.DevTools.CSS.CSSRuleType[] RuleTypes + { + get + { + return (CefSharp.DevTools.CSS.CSSRuleType[])(StringToEnum(typeof(CefSharp.DevTools.CSS.CSSRuleType[]), ruleTypes)); + } + + set + { + this.ruleTypes = (EnumToString(value)); + } + } + + /// + /// The array keeps the types of ancestor CSSRules from the innermost going outwards. + /// + [DataMember(Name = ("ruleTypes"), IsRequired = (false))] + internal string ruleTypes + { + get; + set; + } + } + + /// + /// Enum indicating the type of a CSS rule, used to represent the order of a style rule's ancestors. + /// This list only contains rule types that are collected during the ancestor rule collection. + /// + public enum CSSRuleType + { + /// + /// MediaRule + /// + [EnumMember(Value = ("MediaRule"))] + MediaRule, + /// + /// SupportsRule + /// + [EnumMember(Value = ("SupportsRule"))] + SupportsRule, + /// + /// ContainerRule + /// + [EnumMember(Value = ("ContainerRule"))] + ContainerRule, + /// + /// LayerRule + /// + [EnumMember(Value = ("LayerRule"))] + LayerRule, + /// + /// ScopeRule + /// + [EnumMember(Value = ("ScopeRule"))] + ScopeRule, + /// + /// StyleRule + /// + [EnumMember(Value = ("StyleRule"))] + StyleRule } /// @@ -12764,7 +12858,27 @@ public enum CorsError /// NoCorsRedirectModeNotFollow /// [EnumMember(Value = ("NoCorsRedirectModeNotFollow"))] - NoCorsRedirectModeNotFollow + NoCorsRedirectModeNotFollow, + /// + /// PreflightMissingPrivateNetworkAccessId + /// + [EnumMember(Value = ("PreflightMissingPrivateNetworkAccessId"))] + PreflightMissingPrivateNetworkAccessId, + /// + /// PreflightMissingPrivateNetworkAccessName + /// + [EnumMember(Value = ("PreflightMissingPrivateNetworkAccessName"))] + PreflightMissingPrivateNetworkAccessName, + /// + /// PrivateNetworkAccessPermissionUnavailable + /// + [EnumMember(Value = ("PrivateNetworkAccessPermissionUnavailable"))] + PrivateNetworkAccessPermissionUnavailable, + /// + /// PrivateNetworkAccessPermissionDenied + /// + [EnumMember(Value = ("PrivateNetworkAccessPermissionDenied"))] + PrivateNetworkAccessPermissionDenied } /// @@ -13918,7 +14032,12 @@ public enum SetCookieBlockedReason /// NameValuePairExceedsMaxSize /// [EnumMember(Value = ("NameValuePairExceedsMaxSize"))] - NameValuePairExceedsMaxSize + NameValuePairExceedsMaxSize, + /// + /// DisallowedCharacter + /// + [EnumMember(Value = ("DisallowedCharacter"))] + DisallowedCharacter } /// @@ -14699,7 +14818,7 @@ public System.Collections.Generic.IList - /// Signed exchange header integrity hash in the form of "sha256-<base64-hash-value> ". + /// Signed exchange header integrity hash in the form of `sha256-<base64-hash-value>`. /// [DataMember(Name = ("headerIntegrity"), IsRequired = (true))] public string HeaderIntegrity @@ -14865,7 +14984,12 @@ public enum ContentEncoding /// br /// [EnumMember(Value = ("br"))] - Br + Br, + /// + /// zstd + /// + [EnumMember(Value = ("zstd"))] + Zstd } /// @@ -15849,17 +15973,6 @@ public double EncodedDataLength get; private set; } - - /// - /// Set when 1) response was blocked by Cross-Origin Read Blocking and also - /// 2) this needs to be reported to the DevTools console. - /// - [DataMember(Name = ("shouldReportCorbBlocking"), IsRequired = (false))] - public bool? ShouldReportCorbBlocking - { - get; - private set; - } } /// @@ -18712,6 +18825,11 @@ public enum PermissionsPolicyFeature [EnumMember(Value = ("ch-ua-mobile"))] ChUaMobile, /// + /// ch-ua-form-factor + /// + [EnumMember(Value = ("ch-ua-form-factor"))] + ChUaFormFactor, + /// /// ch-ua-full-version /// [EnumMember(Value = ("ch-ua-full-version"))] @@ -20936,6 +21054,11 @@ public enum BackForwardCacheNotRestoredReason [EnumMember(Value = ("HTTPAuthRequired"))] HTTPAuthRequired, /// + /// CookieFlushed + /// + [EnumMember(Value = ("CookieFlushed"))] + CookieFlushed, + /// /// WebSocket /// [EnumMember(Value = ("WebSocket"))] @@ -20991,11 +21114,6 @@ public enum BackForwardCacheNotRestoredReason [EnumMember(Value = ("OutstandingNetworkRequestOthers"))] OutstandingNetworkRequestOthers, /// - /// OutstandingIndexedDBTransaction - /// - [EnumMember(Value = ("OutstandingIndexedDBTransaction"))] - OutstandingIndexedDBTransaction, - /// /// RequestedMIDIPermission /// [EnumMember(Value = ("RequestedMIDIPermission"))] @@ -21026,11 +21144,6 @@ public enum BackForwardCacheNotRestoredReason [EnumMember(Value = ("BroadcastChannel"))] BroadcastChannel, /// - /// IndexedDBConnection - /// - [EnumMember(Value = ("IndexedDBConnection"))] - IndexedDBConnection, - /// /// WebXR /// [EnumMember(Value = ("WebXR"))] @@ -21514,7 +21627,7 @@ internal string mode } /// - /// Input node id. Only present for file choosers opened via an <input type="file" > element. + /// Input node id. Only present for file choosers opened via an `<input type="file" >` element. /// [DataMember(Name = ("backendNodeId"), IsRequired = (false))] public int? BackendNodeId @@ -24554,6 +24667,297 @@ internal string durability } } + /// + /// AttributionReportingSourceType + /// + public enum AttributionReportingSourceType + { + /// + /// navigation + /// + [EnumMember(Value = ("navigation"))] + Navigation, + /// + /// event + /// + [EnumMember(Value = ("event"))] + Event + } + + /// + /// AttributionReportingFilterDataEntry + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class AttributionReportingFilterDataEntry : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Key + /// + [DataMember(Name = ("key"), IsRequired = (true))] + public string Key + { + get; + set; + } + + /// + /// Values + /// + [DataMember(Name = ("values"), IsRequired = (true))] + public string[] Values + { + get; + set; + } + } + + /// + /// AttributionReportingAggregationKeysEntry + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class AttributionReportingAggregationKeysEntry : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Key + /// + [DataMember(Name = ("key"), IsRequired = (true))] + public string Key + { + get; + set; + } + + /// + /// Value + /// + [DataMember(Name = ("value"), IsRequired = (true))] + public string Value + { + get; + set; + } + } + + /// + /// AttributionReportingSourceRegistration + /// + [System.Runtime.Serialization.DataContractAttribute] + public partial class AttributionReportingSourceRegistration : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Time + /// + [DataMember(Name = ("time"), IsRequired = (true))] + public double Time + { + get; + set; + } + + /// + /// duration in seconds + /// + [DataMember(Name = ("expiry"), IsRequired = (false))] + public int? Expiry + { + get; + set; + } + + /// + /// duration in seconds + /// + [DataMember(Name = ("eventReportWindow"), IsRequired = (false))] + public int? EventReportWindow + { + get; + set; + } + + /// + /// duration in seconds + /// + [DataMember(Name = ("aggregatableReportWindow"), IsRequired = (false))] + public int? AggregatableReportWindow + { + get; + set; + } + + /// + /// Type + /// + public CefSharp.DevTools.Storage.AttributionReportingSourceType Type + { + get + { + return (CefSharp.DevTools.Storage.AttributionReportingSourceType)(StringToEnum(typeof(CefSharp.DevTools.Storage.AttributionReportingSourceType), type)); + } + + set + { + this.type = (EnumToString(value)); + } + } + + /// + /// Type + /// + [DataMember(Name = ("type"), IsRequired = (true))] + internal string type + { + get; + set; + } + + /// + /// SourceOrigin + /// + [DataMember(Name = ("sourceOrigin"), IsRequired = (true))] + public string SourceOrigin + { + get; + set; + } + + /// + /// ReportingOrigin + /// + [DataMember(Name = ("reportingOrigin"), IsRequired = (true))] + public string ReportingOrigin + { + get; + set; + } + + /// + /// DestinationSites + /// + [DataMember(Name = ("destinationSites"), IsRequired = (true))] + public string[] DestinationSites + { + get; + set; + } + + /// + /// EventId + /// + [DataMember(Name = ("eventId"), IsRequired = (true))] + public string EventId + { + get; + set; + } + + /// + /// Priority + /// + [DataMember(Name = ("priority"), IsRequired = (true))] + public string Priority + { + get; + set; + } + + /// + /// FilterData + /// + [DataMember(Name = ("filterData"), IsRequired = (true))] + public System.Collections.Generic.IList FilterData + { + get; + set; + } + + /// + /// AggregationKeys + /// + [DataMember(Name = ("aggregationKeys"), IsRequired = (true))] + public System.Collections.Generic.IList AggregationKeys + { + get; + set; + } + + /// + /// DebugKey + /// + [DataMember(Name = ("debugKey"), IsRequired = (false))] + public string DebugKey + { + get; + set; + } + } + + /// + /// AttributionReportingSourceRegistrationResult + /// + public enum AttributionReportingSourceRegistrationResult + { + /// + /// success + /// + [EnumMember(Value = ("success"))] + Success, + /// + /// internalError + /// + [EnumMember(Value = ("internalError"))] + InternalError, + /// + /// insufficientSourceCapacity + /// + [EnumMember(Value = ("insufficientSourceCapacity"))] + InsufficientSourceCapacity, + /// + /// insufficientUniqueDestinationCapacity + /// + [EnumMember(Value = ("insufficientUniqueDestinationCapacity"))] + InsufficientUniqueDestinationCapacity, + /// + /// excessiveReportingOrigins + /// + [EnumMember(Value = ("excessiveReportingOrigins"))] + ExcessiveReportingOrigins, + /// + /// prohibitedByBrowserPolicy + /// + [EnumMember(Value = ("prohibitedByBrowserPolicy"))] + ProhibitedByBrowserPolicy, + /// + /// successNoised + /// + [EnumMember(Value = ("successNoised"))] + SuccessNoised, + /// + /// destinationReportingLimitReached + /// + [EnumMember(Value = ("destinationReportingLimitReached"))] + DestinationReportingLimitReached, + /// + /// destinationGlobalLimitReached + /// + [EnumMember(Value = ("destinationGlobalLimitReached"))] + DestinationGlobalLimitReached, + /// + /// destinationBothLimitsReached + /// + [EnumMember(Value = ("destinationBothLimitsReached"))] + DestinationBothLimitsReached, + /// + /// reportingOriginsPerSiteLimitReached + /// + [EnumMember(Value = ("reportingOriginsPerSiteLimitReached"))] + ReportingOriginsPerSiteLimitReached, + /// + /// exceedsMaxChannelCapacity + /// + [EnumMember(Value = ("exceedsMaxChannelCapacity"))] + ExceedsMaxChannelCapacity + } + /// /// A cache's contents have been modified. /// @@ -24903,6 +25307,50 @@ public string BucketId private set; } } + + /// + /// TODO(crbug.com/1458532): Add other Attribution Reporting events, e.g. + /// trigger registration. + /// + [System.Runtime.Serialization.DataContractAttribute] + public class AttributionReportingSourceRegisteredEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Registration + /// + [DataMember(Name = ("registration"), IsRequired = (true))] + public CefSharp.DevTools.Storage.AttributionReportingSourceRegistration Registration + { + get; + private set; + } + + /// + /// Result + /// + public CefSharp.DevTools.Storage.AttributionReportingSourceRegistrationResult Result + { + get + { + return (CefSharp.DevTools.Storage.AttributionReportingSourceRegistrationResult)(StringToEnum(typeof(CefSharp.DevTools.Storage.AttributionReportingSourceRegistrationResult), result)); + } + + set + { + this.result = (EnumToString(value)); + } + } + + /// + /// Result + /// + [DataMember(Name = ("result"), IsRequired = (true))] + internal string result + { + get; + private set; + } + } } namespace CefSharp.DevTools.SystemInfo @@ -26391,6 +26839,11 @@ public string Password /// The stage of the request can be determined by presence of responseErrorReason /// and responseStatusCode -- the request is at the response stage if either /// of these fields is present and in the request stage otherwise. + /// Redirect responses and subsequent requests are reported similarly to regular + /// responses and requests. Redirect responses may be distinguished by the value + /// of `responseStatusCode` (which is one of 301, 302, 303, 307, 308) along with + /// presence of the `location` header. Requests resulting from a redirect will + /// have `redirectedRequestId` field set. /// [System.Runtime.Serialization.DataContractAttribute] public class RequestPausedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase @@ -28349,7 +28802,7 @@ public string LoaderId /// /// Source text of JSON representing the rule set. If it comes from - /// <script> tag, it is the textContent of the node. Note that it is + /// `<script>` tag, it is the textContent of the node. Note that it is /// a JSON for valid case. /// /// See also: @@ -28365,9 +28818,9 @@ public string SourceText /// /// A speculation rule set is either added through an inline - /// <script> tag or through an external resource via the + /// `<script>` tag or through an external resource via the /// 'Speculation-Rules' HTTP header. For the first case, we include - /// the BackendNodeId of the relevant <script> tag. For the second + /// the BackendNodeId of the relevant `<script>` tag. For the second /// case, we include the external URL where the rule set was loaded /// from, and also RequestId if Network domain is enabled. /// @@ -28766,11 +29219,6 @@ public enum PrerenderFinalStatus [EnumMember(Value = ("TriggerBackgrounded"))] TriggerBackgrounded, /// - /// EmbedderTriggeredAndCrossOriginRedirected - /// - [EnumMember(Value = ("EmbedderTriggeredAndCrossOriginRedirected"))] - EmbedderTriggeredAndCrossOriginRedirected, - /// /// MemoryLimitExceeded /// [EnumMember(Value = ("MemoryLimitExceeded"))] @@ -28934,7 +29382,17 @@ public enum PrerenderFinalStatus /// ResourceLoadBlockedByClient /// [EnumMember(Value = ("ResourceLoadBlockedByClient"))] - ResourceLoadBlockedByClient + ResourceLoadBlockedByClient, + /// + /// SpeculationRuleRemoved + /// + [EnumMember(Value = ("SpeculationRuleRemoved"))] + SpeculationRuleRemoved, + /// + /// ActivatedWithAuxiliaryBrowsingContexts + /// + [EnumMember(Value = ("ActivatedWithAuxiliaryBrowsingContexts"))] + ActivatedWithAuxiliaryBrowsingContexts } /// @@ -29276,6 +29734,26 @@ public bool DisabledByBatterySaver get; private set; } + + /// + /// DisabledByHoldbackPrefetchSpeculationRules + /// + [DataMember(Name = ("disabledByHoldbackPrefetchSpeculationRules"), IsRequired = (true))] + public bool DisabledByHoldbackPrefetchSpeculationRules + { + get; + private set; + } + + /// + /// DisabledByHoldbackPrerenderSpeculationRules + /// + [DataMember(Name = ("disabledByHoldbackPrerenderSpeculationRules"), IsRequired = (true))] + public bool DisabledByHoldbackPrerenderSpeculationRules + { + get; + private set; + } } /// @@ -29365,6 +29843,16 @@ internal string prefetchStatus get; private set; } + + /// + /// RequestId + /// + [DataMember(Name = ("requestId"), IsRequired = (true))] + public string RequestId + { + get; + private set; + } } /// @@ -29434,6 +29922,17 @@ internal string prerenderStatus get; private set; } + + /// + /// This is used to give users more information about the name of Mojo interface + /// that is incompatible with prerender and has caused the cancellation of the attempt. + /// + [DataMember(Name = ("disallowedMojoInterface"), IsRequired = (false))] + public string DisallowedMojoInterface + { + get; + private set; + } } /// @@ -31536,6 +32035,18 @@ public int? MaxDepth get; set; } + + /// + /// Embedder-specific parameters. For example if connected to V8 in Chrome these control DOM + /// serialization via `maxNodeDepth: integer` and `includeShadowTree: "none" | "open" | "all"`. + /// Values can be only of type string or integer. + /// + [DataMember(Name = ("additionalParameters"), IsRequired = (false))] + public object AdditionalParameters + { + get; + set; + } } /// @@ -37837,8 +38348,8 @@ public enum EnableIncludeWhitespace /// the JavaScript object wrapper, etc. It is important that client receives DOM events only for the /// nodes that are known to the client. Backend keeps track of the nodes that were sent to the client /// and never sends the same node twice. It is client's responsibility to collect information about - /// the nodes that were sent to the client.<p>Note that `iframe` owner elements will return - /// corresponding document elements as their child nodes.</p> + /// the nodes that were sent to the client. Note that `iframe` owner elements will return + /// corresponding document elements as their child nodes. /// public partial class DOMClient : DevToolsDomainBase { @@ -41703,6 +42214,16 @@ public System.Threading.Tasks.Task DispatchTouchEventAsy return _client.ExecuteDevToolsMethodAsync("Input.dispatchTouchEvent", dict); } + /// + /// Cancels any active dragging in the page. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task CancelDraggingAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("Input.cancelDragging", dict); + } + partial void ValidateEmulateTouchFromMouseEvent(CefSharp.DevTools.Input.EmulateTouchFromMouseEventType type, int x, int y, CefSharp.DevTools.Input.MouseButton button, double? timestamp = null, double? deltaX = null, double? deltaY = null, int? modifiers = null, int? clickCount = null); /// /// Emulates touch event from the mouse event parameters. @@ -45997,17 +46518,18 @@ public event System.EventHandler CompilationC } } - partial void ValidateAddScriptToEvaluateOnNewDocument(string source, string worldName = null, bool? includeCommandLineAPI = null); + partial void ValidateAddScriptToEvaluateOnNewDocument(string source, string worldName = null, bool? includeCommandLineAPI = null, bool? runImmediately = null); /// /// Evaluates given script in every frame upon creation (before loading frame's scripts). /// /// source /// If specified, creates an isolated world with the given name and evaluates given script in it.This world name will be used as the ExecutionContextDescription::name when the correspondingevent is emitted. /// Specifies whether command line API should be available to the script, defaultsto false. + /// If true, runs the script immediately on existing execution contexts or worlds.Default: false. /// returns System.Threading.Tasks.Task<AddScriptToEvaluateOnNewDocumentResponse> - public System.Threading.Tasks.Task AddScriptToEvaluateOnNewDocumentAsync(string source, string worldName = null, bool? includeCommandLineAPI = null) + public System.Threading.Tasks.Task AddScriptToEvaluateOnNewDocumentAsync(string source, string worldName = null, bool? includeCommandLineAPI = null, bool? runImmediately = null) { - ValidateAddScriptToEvaluateOnNewDocument(source, worldName, includeCommandLineAPI); + ValidateAddScriptToEvaluateOnNewDocument(source, worldName, includeCommandLineAPI, runImmediately); var dict = new System.Collections.Generic.Dictionary(); dict.Add("source", source); if (!(string.IsNullOrEmpty(worldName))) @@ -46020,6 +46542,11 @@ public System.Threading.Tasks.Task Add dict.Add("includeCommandLineAPI", includeCommandLineAPI.Value); } + if (runImmediately.HasValue) + { + dict.Add("runImmediately", runImmediately.Value); + } + return _client.ExecuteDevToolsMethodAsync("Page.addScriptToEvaluateOnNewDocument", dict); } @@ -46329,7 +46856,7 @@ public System.Threading.Tasks.Task NavigateToHistoryEntr return _client.ExecuteDevToolsMethodAsync("Page.navigateToHistoryEntry", dict); } - partial void ValidatePrintToPDF(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null); + partial void ValidatePrintToPDF(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null, bool? generateTaggedPDF = null); /// /// Print page as PDF. /// @@ -46348,10 +46875,11 @@ public System.Threading.Tasks.Task NavigateToHistoryEntr /// HTML template for the print footer. Should use the same format as the `headerTemplate`. /// Whether or not to prefer page size as defined by css. Defaults to false,in which case the content will be scaled to fit the paper size. /// return as stream + /// Whether or not to generate tagged (accessible) PDF. Defaults to embedder choice. /// returns System.Threading.Tasks.Task<PrintToPDFResponse> - public System.Threading.Tasks.Task PrintToPDFAsync(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null) + public System.Threading.Tasks.Task PrintToPDFAsync(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null, bool? generateTaggedPDF = null) { - ValidatePrintToPDF(landscape, displayHeaderFooter, printBackground, scale, paperWidth, paperHeight, marginTop, marginBottom, marginLeft, marginRight, pageRanges, headerTemplate, footerTemplate, preferCSSPageSize, transferMode); + ValidatePrintToPDF(landscape, displayHeaderFooter, printBackground, scale, paperWidth, paperHeight, marginTop, marginBottom, marginLeft, marginRight, pageRanges, headerTemplate, footerTemplate, preferCSSPageSize, transferMode, generateTaggedPDF); var dict = new System.Collections.Generic.Dictionary(); if (landscape.HasValue) { @@ -46428,6 +46956,11 @@ public System.Threading.Tasks.Task PrintToPDFAsync(bool? lan dict.Add("transferMode", EnumToString(transferMode)); } + if (generateTaggedPDF.HasValue) + { + dict.Add("generateTaggedPDF", generateTaggedPDF.Value); + } + return _client.ExecuteDevToolsMethodAsync("Page.printToPDF", dict); } @@ -47826,6 +48359,23 @@ public event System.EventHandler StorageBucketDel } } + /// + /// TODO(crbug.com/1458532): Add other Attribution Reporting events, e.g. + /// trigger registration. + /// + public event System.EventHandler AttributionReportingSourceRegistered + { + add + { + _client.AddEventHandler("Storage.attributionReportingSourceRegistered", value); + } + + remove + { + _client.RemoveEventHandler("Storage.attributionReportingSourceRegistered", value); + } + } + partial void ValidateGetStorageKeyForFrame(string frameId); /// /// Returns a storage key given a frame id. @@ -48279,6 +48829,34 @@ public System.Threading.Tasks.Task RunBoun System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Storage.runBounceTrackingMitigations", dict); } + + partial void ValidateSetAttributionReportingLocalTestingMode(bool enabled); + /// + /// https://wicg.github.io/attribution-reporting-api/ + /// + /// If enabled, noise is suppressed and reports are sent immediately. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetAttributionReportingLocalTestingModeAsync(bool enabled) + { + ValidateSetAttributionReportingLocalTestingMode(enabled); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("enabled", enabled); + return _client.ExecuteDevToolsMethodAsync("Storage.setAttributionReportingLocalTestingMode", dict); + } + + partial void ValidateSetAttributionReportingTracking(bool enable); + /// + /// Enables/disables issuing of Attribution Reporting events. + /// + /// enable + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetAttributionReportingTrackingAsync(bool enable) + { + ValidateSetAttributionReportingTracking(enable); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("enable", enable); + return _client.ExecuteDevToolsMethodAsync("Storage.setAttributionReportingTracking", dict); + } } } @@ -49644,6 +50222,11 @@ public FetchClient(CefSharp.DevTools.IDevToolsClient client) /// The stage of the request can be determined by presence of responseErrorReason /// and responseStatusCode -- the request is at the response stage if either /// of these fields is present and in the request stage otherwise. + /// Redirect responses and subsequent requests are reported similarly to regular + /// responses and requests. Redirect responses may be distinguished by the value + /// of `responseStatusCode` (which is one of 301, 302, 303, 307, 308) along with + /// presence of the `location` header. Requests resulting from a redirect will + /// have `redirectedRequestId` field set. /// public event System.EventHandler RequestPaused { @@ -49874,6 +50457,10 @@ public System.Threading.Tasks.Task ContinueResponseAsync /// takeResponseBodyForInterceptionAsStream. Calling other methods that /// affect the request or disabling fetch domain before body is received /// results in an undefined behavior. + /// Note that the response body is not available for redirects. Requests + /// paused in the _redirect received_ state may be differentiated by + /// `responseCode` and presence of `location` response header, see + /// comments to `requestPaused` for details. /// /// Identifier for the intercepted request to get body for. /// returns System.Threading.Tasks.Task<GetResponseBodyResponse> @@ -54596,8 +55183,8 @@ public CefSharp.DevTools.Cast.CastClient Cast /// the JavaScript object wrapper, etc. It is important that client receives DOM events only for the /// nodes that are known to the client. Backend keeps track of the nodes that were sent to the client /// and never sends the same node twice. It is client's responsibility to collect information about - /// the nodes that were sent to the client.<p>Note that `iframe` owner elements will return - /// corresponding document elements as their child nodes.</p> + /// the nodes that were sent to the client. Note that `iframe` owner elements will return + /// corresponding document elements as their child nodes. /// public CefSharp.DevTools.DOM.DOMClient DOM { diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs index 76e6d71a52..062ba72545 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 116.0.5845.97 +// CHROMIUM VERSION 117.0.5938.92 using System.Text.Json.Serialization; namespace CefSharp.DevTools.Accessibility @@ -250,7 +250,7 @@ public bool? Superseded } /// - /// The native markup source for this value, e.g. a <label> element. + /// The native markup source for this value, e.g. a `<label>` element. /// [JsonPropertyName("nativeSource")] public CefSharp.DevTools.Accessibility.AXValueNativeSourceType? NativeSource @@ -1263,7 +1263,12 @@ public enum CookieExclusionReason /// ExcludeThirdPartyCookieBlockedInFirstPartySet /// [JsonPropertyName("ExcludeThirdPartyCookieBlockedInFirstPartySet")] - ExcludeThirdPartyCookieBlockedInFirstPartySet + ExcludeThirdPartyCookieBlockedInFirstPartySet, + /// + /// ExcludeThirdPartyPhaseout + /// + [JsonPropertyName("ExcludeThirdPartyPhaseout")] + ExcludeThirdPartyPhaseout } /// @@ -1320,7 +1325,12 @@ public enum CookieWarningReason /// WarnDomainNonASCII /// [JsonPropertyName("WarnDomainNonASCII")] - WarnDomainNonASCII + WarnDomainNonASCII, + /// + /// WarnThirdPartyPhaseout + /// + [JsonPropertyName("WarnThirdPartyPhaseout")] + WarnThirdPartyPhaseout } /// @@ -2274,7 +2284,12 @@ public enum AttributionReportingIssueType /// NoWebOrOsSupport /// [JsonPropertyName("NoWebOrOsSupport")] - NoWebOrOsSupport + NoWebOrOsSupport, + /// + /// NavigationRegistrationWithoutTransientUserActivation + /// + [JsonPropertyName("NavigationRegistrationWithoutTransientUserActivation")] + NavigationRegistrationWithoutTransientUserActivation } /// @@ -2471,7 +2486,12 @@ public enum GenericIssueErrorType /// FormInputHasWrongButWellIntendedAutocompleteValueError /// [JsonPropertyName("FormInputHasWrongButWellIntendedAutocompleteValueError")] - FormInputHasWrongButWellIntendedAutocompleteValueError + FormInputHasWrongButWellIntendedAutocompleteValueError, + /// + /// ResponseWasBlockedByORB + /// + [JsonPropertyName("ResponseWasBlockedByORB")] + ResponseWasBlockedByORB } /// @@ -2518,6 +2538,16 @@ public string ViolatingNodeAttribute get; set; } + + /// + /// Request + /// + [JsonPropertyName("request")] + public CefSharp.DevTools.Audits.AffectedRequest Request + { + get; + set; + } } /// @@ -4545,7 +4575,7 @@ public bool IsInline /// /// Whether this stylesheet is mutable. Inline stylesheets become mutable /// after they have been modified via CSSOM API. - /// <link> element's stylesheets become mutable only if DevTools modifies them. + /// `<link>` element's stylesheets become mutable only if DevTools modifies them. /// Constructed stylesheets (new CSSStyleSheet()) are mutable immediately after creation. /// [JsonPropertyName("isMutable")] @@ -4739,6 +4769,54 @@ public System.Collections.Generic.IList Scopes get; set; } + + /// + /// The array keeps the types of ancestor CSSRules from the innermost going outwards. + /// + [JsonPropertyName("ruleTypes")] + public CefSharp.DevTools.CSS.CSSRuleType[] RuleTypes + { + get; + set; + } + } + + /// + /// Enum indicating the type of a CSS rule, used to represent the order of a style rule's ancestors. + /// This list only contains rule types that are collected during the ancestor rule collection. + /// + public enum CSSRuleType + { + /// + /// MediaRule + /// + [JsonPropertyName("MediaRule")] + MediaRule, + /// + /// SupportsRule + /// + [JsonPropertyName("SupportsRule")] + SupportsRule, + /// + /// ContainerRule + /// + [JsonPropertyName("ContainerRule")] + ContainerRule, + /// + /// LayerRule + /// + [JsonPropertyName("LayerRule")] + LayerRule, + /// + /// ScopeRule + /// + [JsonPropertyName("ScopeRule")] + ScopeRule, + /// + /// StyleRule + /// + [JsonPropertyName("StyleRule")] + StyleRule } /// @@ -12017,7 +12095,27 @@ public enum CorsError /// NoCorsRedirectModeNotFollow /// [JsonPropertyName("NoCorsRedirectModeNotFollow")] - NoCorsRedirectModeNotFollow + NoCorsRedirectModeNotFollow, + /// + /// PreflightMissingPrivateNetworkAccessId + /// + [JsonPropertyName("PreflightMissingPrivateNetworkAccessId")] + PreflightMissingPrivateNetworkAccessId, + /// + /// PreflightMissingPrivateNetworkAccessName + /// + [JsonPropertyName("PreflightMissingPrivateNetworkAccessName")] + PreflightMissingPrivateNetworkAccessName, + /// + /// PrivateNetworkAccessPermissionUnavailable + /// + [JsonPropertyName("PrivateNetworkAccessPermissionUnavailable")] + PrivateNetworkAccessPermissionUnavailable, + /// + /// PrivateNetworkAccessPermissionDenied + /// + [JsonPropertyName("PrivateNetworkAccessPermissionDenied")] + PrivateNetworkAccessPermissionDenied } /// @@ -12999,7 +13097,12 @@ public enum SetCookieBlockedReason /// NameValuePairExceedsMaxSize /// [JsonPropertyName("NameValuePairExceedsMaxSize")] - NameValuePairExceedsMaxSize + NameValuePairExceedsMaxSize, + /// + /// DisallowedCharacter + /// + [JsonPropertyName("DisallowedCharacter")] + DisallowedCharacter } /// @@ -13640,7 +13743,7 @@ public System.Collections.Generic.IList - /// Signed exchange header integrity hash in the form of "sha256-<base64-hash-value> ". + /// Signed exchange header integrity hash in the form of `sha256-<base64-hash-value>`. /// [JsonPropertyName("headerIntegrity")] [System.Diagnostics.CodeAnalysis.DisallowNull] @@ -13791,7 +13894,12 @@ public enum ContentEncoding /// br /// [JsonPropertyName("br")] - Br + Br, + /// + /// zstd + /// + [JsonPropertyName("zstd")] + Zstd } /// @@ -14636,18 +14744,6 @@ public double EncodedDataLength get; private set; } - - /// - /// Set when 1) response was blocked by Cross-Origin Read Blocking and also - /// 2) this needs to be reported to the DevTools console. - /// - [JsonInclude] - [JsonPropertyName("shouldReportCorbBlocking")] - public bool? ShouldReportCorbBlocking - { - get; - private set; - } } /// @@ -17408,6 +17504,11 @@ public enum PermissionsPolicyFeature [JsonPropertyName("ch-ua-mobile")] ChUaMobile, /// + /// ch-ua-form-factor + /// + [JsonPropertyName("ch-ua-form-factor")] + ChUaFormFactor, + /// /// ch-ua-full-version /// [JsonPropertyName("ch-ua-full-version")] @@ -19479,6 +19580,11 @@ public enum BackForwardCacheNotRestoredReason [JsonPropertyName("HTTPAuthRequired")] HTTPAuthRequired, /// + /// CookieFlushed + /// + [JsonPropertyName("CookieFlushed")] + CookieFlushed, + /// /// WebSocket /// [JsonPropertyName("WebSocket")] @@ -19534,11 +19640,6 @@ public enum BackForwardCacheNotRestoredReason [JsonPropertyName("OutstandingNetworkRequestOthers")] OutstandingNetworkRequestOthers, /// - /// OutstandingIndexedDBTransaction - /// - [JsonPropertyName("OutstandingIndexedDBTransaction")] - OutstandingIndexedDBTransaction, - /// /// RequestedMIDIPermission /// [JsonPropertyName("RequestedMIDIPermission")] @@ -19569,11 +19670,6 @@ public enum BackForwardCacheNotRestoredReason [JsonPropertyName("BroadcastChannel")] BroadcastChannel, /// - /// IndexedDBConnection - /// - [JsonPropertyName("IndexedDBConnection")] - IndexedDBConnection, - /// /// WebXR /// [JsonPropertyName("WebXR")] @@ -20012,7 +20108,7 @@ public CefSharp.DevTools.Page.FileChooserOpenedMode Mode } /// - /// Input node id. Only present for file choosers opened via an <input type="file" > element. + /// Input node id. Only present for file choosers opened via an `<input type="file" >` element. /// [JsonInclude] [JsonPropertyName("backendNodeId")] @@ -22872,6 +22968,289 @@ public CefSharp.DevTools.Storage.StorageBucketsDurability Durability } } + /// + /// AttributionReportingSourceType + /// + public enum AttributionReportingSourceType + { + /// + /// navigation + /// + [JsonPropertyName("navigation")] + Navigation, + /// + /// event + /// + [JsonPropertyName("event")] + Event + } + + /// + /// AttributionReportingFilterDataEntry + /// + public partial class AttributionReportingFilterDataEntry : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Key + /// + [JsonPropertyName("key")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Key + { + get; + set; + } + + /// + /// Values + /// + [JsonPropertyName("values")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string[] Values + { + get; + set; + } + } + + /// + /// AttributionReportingAggregationKeysEntry + /// + public partial class AttributionReportingAggregationKeysEntry : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Key + /// + [JsonPropertyName("key")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Key + { + get; + set; + } + + /// + /// Value + /// + [JsonPropertyName("value")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Value + { + get; + set; + } + } + + /// + /// AttributionReportingSourceRegistration + /// + public partial class AttributionReportingSourceRegistration : CefSharp.DevTools.DevToolsDomainEntityBase + { + /// + /// Time + /// + [JsonPropertyName("time")] + public double Time + { + get; + set; + } + + /// + /// duration in seconds + /// + [JsonPropertyName("expiry")] + public int? Expiry + { + get; + set; + } + + /// + /// duration in seconds + /// + [JsonPropertyName("eventReportWindow")] + public int? EventReportWindow + { + get; + set; + } + + /// + /// duration in seconds + /// + [JsonPropertyName("aggregatableReportWindow")] + public int? AggregatableReportWindow + { + get; + set; + } + + /// + /// Type + /// + [JsonPropertyName("type")] + public CefSharp.DevTools.Storage.AttributionReportingSourceType Type + { + get; + set; + } + + /// + /// SourceOrigin + /// + [JsonPropertyName("sourceOrigin")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string SourceOrigin + { + get; + set; + } + + /// + /// ReportingOrigin + /// + [JsonPropertyName("reportingOrigin")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string ReportingOrigin + { + get; + set; + } + + /// + /// DestinationSites + /// + [JsonPropertyName("destinationSites")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string[] DestinationSites + { + get; + set; + } + + /// + /// EventId + /// + [JsonPropertyName("eventId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string EventId + { + get; + set; + } + + /// + /// Priority + /// + [JsonPropertyName("priority")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string Priority + { + get; + set; + } + + /// + /// FilterData + /// + [JsonPropertyName("filterData")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList FilterData + { + get; + set; + } + + /// + /// AggregationKeys + /// + [JsonPropertyName("aggregationKeys")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public System.Collections.Generic.IList AggregationKeys + { + get; + set; + } + + /// + /// DebugKey + /// + [JsonPropertyName("debugKey")] + public string DebugKey + { + get; + set; + } + } + + /// + /// AttributionReportingSourceRegistrationResult + /// + public enum AttributionReportingSourceRegistrationResult + { + /// + /// success + /// + [JsonPropertyName("success")] + Success, + /// + /// internalError + /// + [JsonPropertyName("internalError")] + InternalError, + /// + /// insufficientSourceCapacity + /// + [JsonPropertyName("insufficientSourceCapacity")] + InsufficientSourceCapacity, + /// + /// insufficientUniqueDestinationCapacity + /// + [JsonPropertyName("insufficientUniqueDestinationCapacity")] + InsufficientUniqueDestinationCapacity, + /// + /// excessiveReportingOrigins + /// + [JsonPropertyName("excessiveReportingOrigins")] + ExcessiveReportingOrigins, + /// + /// prohibitedByBrowserPolicy + /// + [JsonPropertyName("prohibitedByBrowserPolicy")] + ProhibitedByBrowserPolicy, + /// + /// successNoised + /// + [JsonPropertyName("successNoised")] + SuccessNoised, + /// + /// destinationReportingLimitReached + /// + [JsonPropertyName("destinationReportingLimitReached")] + DestinationReportingLimitReached, + /// + /// destinationGlobalLimitReached + /// + [JsonPropertyName("destinationGlobalLimitReached")] + DestinationGlobalLimitReached, + /// + /// destinationBothLimitsReached + /// + [JsonPropertyName("destinationBothLimitsReached")] + DestinationBothLimitsReached, + /// + /// reportingOriginsPerSiteLimitReached + /// + [JsonPropertyName("reportingOriginsPerSiteLimitReached")] + ReportingOriginsPerSiteLimitReached, + /// + /// exceedsMaxChannelCapacity + /// + [JsonPropertyName("exceedsMaxChannelCapacity")] + ExceedsMaxChannelCapacity + } + /// /// A cache's contents have been modified. /// @@ -23229,6 +23608,36 @@ public string BucketId private set; } } + + /// + /// TODO(crbug.com/1458532): Add other Attribution Reporting events, e.g. + /// trigger registration. + /// + public class AttributionReportingSourceRegisteredEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase + { + /// + /// Registration + /// + [JsonInclude] + [JsonPropertyName("registration")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public CefSharp.DevTools.Storage.AttributionReportingSourceRegistration Registration + { + get; + private set; + } + + /// + /// Result + /// + [JsonInclude] + [JsonPropertyName("result")] + public CefSharp.DevTools.Storage.AttributionReportingSourceRegistrationResult Result + { + get; + private set; + } + } } namespace CefSharp.DevTools.SystemInfo @@ -24608,6 +25017,11 @@ public string Password /// The stage of the request can be determined by presence of responseErrorReason /// and responseStatusCode -- the request is at the response stage if either /// of these fields is present and in the request stage otherwise. + /// Redirect responses and subsequent requests are reported similarly to regular + /// responses and requests. Redirect responses may be distinguished by the value + /// of `responseStatusCode` (which is one of 301, 302, 303, 307, 308) along with + /// presence of the `location` header. Requests resulting from a redirect will + /// have `redirectedRequestId` field set. /// public class RequestPausedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase { @@ -26462,7 +26876,7 @@ public string LoaderId /// /// Source text of JSON representing the rule set. If it comes from - /// <script> tag, it is the textContent of the node. Note that it is + /// `<script>` tag, it is the textContent of the node. Note that it is /// a JSON for valid case. /// /// See also: @@ -26479,9 +26893,9 @@ public string SourceText /// /// A speculation rule set is either added through an inline - /// <script> tag or through an external resource via the + /// `<script>` tag or through an external resource via the /// 'Speculation-Rules' HTTP header. For the first case, we include - /// the BackendNodeId of the relevant <script> tag. For the second + /// the BackendNodeId of the relevant `<script>` tag. For the second /// case, we include the external URL where the rule set was loaded /// from, and also RequestId if Network domain is enabled. /// @@ -26833,11 +27247,6 @@ public enum PrerenderFinalStatus [JsonPropertyName("TriggerBackgrounded")] TriggerBackgrounded, /// - /// EmbedderTriggeredAndCrossOriginRedirected - /// - [JsonPropertyName("EmbedderTriggeredAndCrossOriginRedirected")] - EmbedderTriggeredAndCrossOriginRedirected, - /// /// MemoryLimitExceeded /// [JsonPropertyName("MemoryLimitExceeded")] @@ -27001,7 +27410,17 @@ public enum PrerenderFinalStatus /// ResourceLoadBlockedByClient /// [JsonPropertyName("ResourceLoadBlockedByClient")] - ResourceLoadBlockedByClient + ResourceLoadBlockedByClient, + /// + /// SpeculationRuleRemoved + /// + [JsonPropertyName("SpeculationRuleRemoved")] + SpeculationRuleRemoved, + /// + /// ActivatedWithAuxiliaryBrowsingContexts + /// + [JsonPropertyName("ActivatedWithAuxiliaryBrowsingContexts")] + ActivatedWithAuxiliaryBrowsingContexts } /// @@ -27338,6 +27757,28 @@ public bool DisabledByBatterySaver get; private set; } + + /// + /// DisabledByHoldbackPrefetchSpeculationRules + /// + [JsonInclude] + [JsonPropertyName("disabledByHoldbackPrefetchSpeculationRules")] + public bool DisabledByHoldbackPrefetchSpeculationRules + { + get; + private set; + } + + /// + /// DisabledByHoldbackPrerenderSpeculationRules + /// + [JsonInclude] + [JsonPropertyName("disabledByHoldbackPrerenderSpeculationRules")] + public bool DisabledByHoldbackPrerenderSpeculationRules + { + get; + private set; + } } /// @@ -27402,6 +27843,18 @@ public CefSharp.DevTools.Preload.PrefetchStatus PrefetchStatus get; private set; } + + /// + /// RequestId + /// + [JsonInclude] + [JsonPropertyName("requestId")] + [System.Diagnostics.CodeAnalysis.DisallowNull] + public string RequestId + { + get; + private set; + } } /// @@ -27442,6 +27895,18 @@ public CefSharp.DevTools.Preload.PrerenderFinalStatus? PrerenderStatus get; private set; } + + /// + /// This is used to give users more information about the name of Mojo interface + /// that is incompatible with prerender and has caused the cancellation of the attempt. + /// + [JsonInclude] + [JsonPropertyName("disallowedMojoInterface")] + public string DisallowedMojoInterface + { + get; + private set; + } } /// @@ -29490,6 +29955,18 @@ public int? MaxDepth get; set; } + + /// + /// Embedder-specific parameters. For example if connected to V8 in Chrome these control DOM + /// serialization via `maxNodeDepth: integer` and `includeShadowTree: "none" | "open" | "all"`. + /// Values can be only of type string or integer. + /// + [JsonPropertyName("additionalParameters")] + public object AdditionalParameters + { + get; + set; + } } /// @@ -34963,8 +35440,8 @@ public enum EnableIncludeWhitespace /// the JavaScript object wrapper, etc. It is important that client receives DOM events only for the /// nodes that are known to the client. Backend keeps track of the nodes that were sent to the client /// and never sends the same node twice. It is client's responsibility to collect information about - /// the nodes that were sent to the client.<p>Note that `iframe` owner elements will return - /// corresponding document elements as their child nodes.</p> + /// the nodes that were sent to the client. Note that `iframe` owner elements will return + /// corresponding document elements as their child nodes. /// public partial class DOMClient : DevToolsDomainBase { @@ -38661,6 +39138,16 @@ public System.Threading.Tasks.Task DispatchTouchEventAsy return _client.ExecuteDevToolsMethodAsync("Input.dispatchTouchEvent", dict); } + /// + /// Cancels any active dragging in the page. + /// + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task CancelDraggingAsync() + { + System.Collections.Generic.Dictionary dict = null; + return _client.ExecuteDevToolsMethodAsync("Input.cancelDragging", dict); + } + partial void ValidateEmulateTouchFromMouseEvent(CefSharp.DevTools.Input.EmulateTouchFromMouseEventType type, int x, int y, CefSharp.DevTools.Input.MouseButton button, double? timestamp = null, double? deltaX = null, double? deltaY = null, int? modifiers = null, int? clickCount = null); /// /// Emulates touch event from the mouse event parameters. @@ -42494,17 +42981,18 @@ public event System.EventHandler CompilationC } } - partial void ValidateAddScriptToEvaluateOnNewDocument(string source, string worldName = null, bool? includeCommandLineAPI = null); + partial void ValidateAddScriptToEvaluateOnNewDocument(string source, string worldName = null, bool? includeCommandLineAPI = null, bool? runImmediately = null); /// /// Evaluates given script in every frame upon creation (before loading frame's scripts). /// /// source /// If specified, creates an isolated world with the given name and evaluates given script in it.This world name will be used as the ExecutionContextDescription::name when the correspondingevent is emitted. /// Specifies whether command line API should be available to the script, defaultsto false. + /// If true, runs the script immediately on existing execution contexts or worlds.Default: false. /// returns System.Threading.Tasks.Task<AddScriptToEvaluateOnNewDocumentResponse> - public System.Threading.Tasks.Task AddScriptToEvaluateOnNewDocumentAsync(string source, string worldName = null, bool? includeCommandLineAPI = null) + public System.Threading.Tasks.Task AddScriptToEvaluateOnNewDocumentAsync(string source, string worldName = null, bool? includeCommandLineAPI = null, bool? runImmediately = null) { - ValidateAddScriptToEvaluateOnNewDocument(source, worldName, includeCommandLineAPI); + ValidateAddScriptToEvaluateOnNewDocument(source, worldName, includeCommandLineAPI, runImmediately); var dict = new System.Collections.Generic.Dictionary(); dict.Add("source", source); if (!(string.IsNullOrEmpty(worldName))) @@ -42517,6 +43005,11 @@ public System.Threading.Tasks.Task Add dict.Add("includeCommandLineAPI", includeCommandLineAPI.Value); } + if (runImmediately.HasValue) + { + dict.Add("runImmediately", runImmediately.Value); + } + return _client.ExecuteDevToolsMethodAsync("Page.addScriptToEvaluateOnNewDocument", dict); } @@ -42826,7 +43319,7 @@ public System.Threading.Tasks.Task NavigateToHistoryEntr return _client.ExecuteDevToolsMethodAsync("Page.navigateToHistoryEntry", dict); } - partial void ValidatePrintToPDF(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null); + partial void ValidatePrintToPDF(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null, bool? generateTaggedPDF = null); /// /// Print page as PDF. /// @@ -42845,10 +43338,11 @@ public System.Threading.Tasks.Task NavigateToHistoryEntr /// HTML template for the print footer. Should use the same format as the `headerTemplate`. /// Whether or not to prefer page size as defined by css. Defaults to false,in which case the content will be scaled to fit the paper size. /// return as stream + /// Whether or not to generate tagged (accessible) PDF. Defaults to embedder choice. /// returns System.Threading.Tasks.Task<PrintToPDFResponse> - public System.Threading.Tasks.Task PrintToPDFAsync(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null) + public System.Threading.Tasks.Task PrintToPDFAsync(bool? landscape = null, bool? displayHeaderFooter = null, bool? printBackground = null, double? scale = null, double? paperWidth = null, double? paperHeight = null, double? marginTop = null, double? marginBottom = null, double? marginLeft = null, double? marginRight = null, string pageRanges = null, string headerTemplate = null, string footerTemplate = null, bool? preferCSSPageSize = null, CefSharp.DevTools.Page.PrintToPDFTransferMode? transferMode = null, bool? generateTaggedPDF = null) { - ValidatePrintToPDF(landscape, displayHeaderFooter, printBackground, scale, paperWidth, paperHeight, marginTop, marginBottom, marginLeft, marginRight, pageRanges, headerTemplate, footerTemplate, preferCSSPageSize, transferMode); + ValidatePrintToPDF(landscape, displayHeaderFooter, printBackground, scale, paperWidth, paperHeight, marginTop, marginBottom, marginLeft, marginRight, pageRanges, headerTemplate, footerTemplate, preferCSSPageSize, transferMode, generateTaggedPDF); var dict = new System.Collections.Generic.Dictionary(); if (landscape.HasValue) { @@ -42925,6 +43419,11 @@ public System.Threading.Tasks.Task PrintToPDFAsync(bool? lan dict.Add("transferMode", EnumToString(transferMode)); } + if (generateTaggedPDF.HasValue) + { + dict.Add("generateTaggedPDF", generateTaggedPDF.Value); + } + return _client.ExecuteDevToolsMethodAsync("Page.printToPDF", dict); } @@ -44222,6 +44721,23 @@ public event System.EventHandler StorageBucketDel } } + /// + /// TODO(crbug.com/1458532): Add other Attribution Reporting events, e.g. + /// trigger registration. + /// + public event System.EventHandler AttributionReportingSourceRegistered + { + add + { + _client.AddEventHandler("Storage.attributionReportingSourceRegistered", value); + } + + remove + { + _client.RemoveEventHandler("Storage.attributionReportingSourceRegistered", value); + } + } + partial void ValidateGetStorageKeyForFrame(string frameId); /// /// Returns a storage key given a frame id. @@ -44675,6 +45191,34 @@ public System.Threading.Tasks.Task RunBoun System.Collections.Generic.Dictionary dict = null; return _client.ExecuteDevToolsMethodAsync("Storage.runBounceTrackingMitigations", dict); } + + partial void ValidateSetAttributionReportingLocalTestingMode(bool enabled); + /// + /// https://wicg.github.io/attribution-reporting-api/ + /// + /// If enabled, noise is suppressed and reports are sent immediately. + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetAttributionReportingLocalTestingModeAsync(bool enabled) + { + ValidateSetAttributionReportingLocalTestingMode(enabled); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("enabled", enabled); + return _client.ExecuteDevToolsMethodAsync("Storage.setAttributionReportingLocalTestingMode", dict); + } + + partial void ValidateSetAttributionReportingTracking(bool enable); + /// + /// Enables/disables issuing of Attribution Reporting events. + /// + /// enable + /// returns System.Threading.Tasks.Task<DevToolsMethodResponse> + public System.Threading.Tasks.Task SetAttributionReportingTrackingAsync(bool enable) + { + ValidateSetAttributionReportingTracking(enable); + var dict = new System.Collections.Generic.Dictionary(); + dict.Add("enable", enable); + return _client.ExecuteDevToolsMethodAsync("Storage.setAttributionReportingTracking", dict); + } } } @@ -45885,6 +46429,11 @@ public FetchClient(CefSharp.DevTools.IDevToolsClient client) /// The stage of the request can be determined by presence of responseErrorReason /// and responseStatusCode -- the request is at the response stage if either /// of these fields is present and in the request stage otherwise. + /// Redirect responses and subsequent requests are reported similarly to regular + /// responses and requests. Redirect responses may be distinguished by the value + /// of `responseStatusCode` (which is one of 301, 302, 303, 307, 308) along with + /// presence of the `location` header. Requests resulting from a redirect will + /// have `redirectedRequestId` field set. /// public event System.EventHandler RequestPaused { @@ -46115,6 +46664,10 @@ public System.Threading.Tasks.Task ContinueResponseAsync /// takeResponseBodyForInterceptionAsStream. Calling other methods that /// affect the request or disabling fetch domain before body is received /// results in an undefined behavior. + /// Note that the response body is not available for redirects. Requests + /// paused in the _redirect received_ state may be differentiated by + /// `responseCode` and presence of `location` response header, see + /// comments to `requestPaused` for details. /// /// Identifier for the intercepted request to get body for. /// returns System.Threading.Tasks.Task<GetResponseBodyResponse> @@ -50373,8 +50926,8 @@ public CefSharp.DevTools.Cast.CastClient Cast /// the JavaScript object wrapper, etc. It is important that client receives DOM events only for the /// nodes that are known to the client. Backend keeps track of the nodes that were sent to the client /// and never sends the same node twice. It is client's responsibility to collect information about - /// the nodes that were sent to the client.<p>Note that `iframe` owner elements will return - /// corresponding document elements as their child nodes.</p> + /// the nodes that were sent to the client. Note that `iframe` owner elements will return + /// corresponding document elements as their child nodes. /// public CefSharp.DevTools.DOM.DOMClient DOM {