From ca162007b9ae42c14a616ced2833457ea4650f20 Mon Sep 17 00:00:00 2001
From: amaitland <307872+amaitland@users.noreply.github.com>
Date: Tue, 23 Sep 2025 18:58:21 +1000
Subject: [PATCH] DevTools Client - Upgrade to 140.0.7339.185
---
.../DevTools/DevToolsClient.Generated.cs | 425 +++++++++++++++---
.../DevToolsClient.Generated.netcore.cs | 370 ++++++++++++---
2 files changed, 683 insertions(+), 112 deletions(-)
diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.cs
index e1ccb978e..196a76118 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 139.0.7258.139
+// CHROMIUM VERSION 140.0.7339.185
using System.Runtime.Serialization;
namespace CefSharp.DevTools.Accessibility
@@ -3054,6 +3054,33 @@ namespace CefSharp.DevTools.Audits
ValidationFailedIntegrityMismatch
}
+ ///
+ /// UnencodedDigestError
+ ///
+ public enum UnencodedDigestError
+ {
+ ///
+ /// MalformedDictionary
+ ///
+ [EnumMember(Value = ("MalformedDictionary"))]
+ MalformedDictionary,
+ ///
+ /// UnknownAlgorithm
+ ///
+ [EnumMember(Value = ("UnknownAlgorithm"))]
+ UnknownAlgorithm,
+ ///
+ /// IncorrectDigestType
+ ///
+ [EnumMember(Value = ("IncorrectDigestType"))]
+ IncorrectDigestType,
+ ///
+ /// IncorrectDigestLength
+ ///
+ [EnumMember(Value = ("IncorrectDigestLength"))]
+ IncorrectDigestLength
+ }
+
///
/// Details for issues around "Attribution Reporting API" usage.
/// Explainer: https://github.com/WICG/attribution-reporting-api
@@ -3310,6 +3337,49 @@ namespace CefSharp.DevTools.Audits
}
}
+ ///
+ /// UnencodedDigestIssueDetails
+ ///
+ [System.Runtime.Serialization.DataContractAttribute]
+ public partial class UnencodedDigestIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase
+ {
+ ///
+ /// Error
+ ///
+ public CefSharp.DevTools.Audits.UnencodedDigestError Error
+ {
+ get
+ {
+ return (CefSharp.DevTools.Audits.UnencodedDigestError)(StringToEnum(typeof(CefSharp.DevTools.Audits.UnencodedDigestError), error));
+ }
+
+ set
+ {
+ this.error = (EnumToString(value));
+ }
+ }
+
+ ///
+ /// Error
+ ///
+ [DataMember(Name = ("error"), IsRequired = (true))]
+ internal string error
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// Request
+ ///
+ [DataMember(Name = ("request"), IsRequired = (true))]
+ public CefSharp.DevTools.Audits.AffectedRequest Request
+ {
+ get;
+ set;
+ }
+ }
+
///
/// GenericIssueErrorType
///
@@ -4100,9 +4170,9 @@ namespace CefSharp.DevTools.Audits
}
///
- /// SelectElementAccessibilityIssueReason
+ /// ElementAccessibilityIssueReason
///
- public enum SelectElementAccessibilityIssueReason
+ public enum ElementAccessibilityIssueReason
{
///
/// DisallowedSelectChild
@@ -4128,14 +4198,19 @@ namespace CefSharp.DevTools.Audits
/// InteractiveContentLegendChild
///
[EnumMember(Value = ("InteractiveContentLegendChild"))]
- InteractiveContentLegendChild
+ InteractiveContentLegendChild,
+ ///
+ /// InteractiveContentSummaryDescendant
+ ///
+ [EnumMember(Value = ("InteractiveContentSummaryDescendant"))]
+ InteractiveContentSummaryDescendant
}
///
- /// This issue warns about errors in the select element content model.
+ /// This issue warns about errors in the select or summary element content model.
///
[System.Runtime.Serialization.DataContractAttribute]
- public partial class SelectElementAccessibilityIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase
+ public partial class ElementAccessibilityIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase
{
///
/// NodeId
@@ -4148,26 +4223,26 @@ namespace CefSharp.DevTools.Audits
}
///
- /// SelectElementAccessibilityIssueReason
+ /// ElementAccessibilityIssueReason
///
- public CefSharp.DevTools.Audits.SelectElementAccessibilityIssueReason SelectElementAccessibilityIssueReason
+ public CefSharp.DevTools.Audits.ElementAccessibilityIssueReason ElementAccessibilityIssueReason
{
get
{
- return (CefSharp.DevTools.Audits.SelectElementAccessibilityIssueReason)(StringToEnum(typeof(CefSharp.DevTools.Audits.SelectElementAccessibilityIssueReason), selectElementAccessibilityIssueReason));
+ return (CefSharp.DevTools.Audits.ElementAccessibilityIssueReason)(StringToEnum(typeof(CefSharp.DevTools.Audits.ElementAccessibilityIssueReason), elementAccessibilityIssueReason));
}
set
{
- this.selectElementAccessibilityIssueReason = (EnumToString(value));
+ this.elementAccessibilityIssueReason = (EnumToString(value));
}
}
///
- /// SelectElementAccessibilityIssueReason
+ /// ElementAccessibilityIssueReason
///
- [DataMember(Name = ("selectElementAccessibilityIssueReason"), IsRequired = (true))]
- internal string selectElementAccessibilityIssueReason
+ [DataMember(Name = ("elementAccessibilityIssueReason"), IsRequired = (true))]
+ internal string elementAccessibilityIssueReason
{
get;
set;
@@ -4514,16 +4589,21 @@ namespace CefSharp.DevTools.Audits
[EnumMember(Value = ("SharedDictionaryIssue"))]
SharedDictionaryIssue,
///
- /// SelectElementAccessibilityIssue
+ /// ElementAccessibilityIssue
///
- [EnumMember(Value = ("SelectElementAccessibilityIssue"))]
- SelectElementAccessibilityIssue,
+ [EnumMember(Value = ("ElementAccessibilityIssue"))]
+ ElementAccessibilityIssue,
///
/// SRIMessageSignatureIssue
///
[EnumMember(Value = ("SRIMessageSignatureIssue"))]
SRIMessageSignatureIssue,
///
+ /// UnencodedDigestIssue
+ ///
+ [EnumMember(Value = ("UnencodedDigestIssue"))]
+ UnencodedDigestIssue,
+ ///
/// UserReidentificationIssue
///
[EnumMember(Value = ("UserReidentificationIssue"))]
@@ -4759,10 +4839,10 @@ namespace CefSharp.DevTools.Audits
}
///
- /// SelectElementAccessibilityIssueDetails
+ /// ElementAccessibilityIssueDetails
///
- [DataMember(Name = ("selectElementAccessibilityIssueDetails"), IsRequired = (false))]
- public CefSharp.DevTools.Audits.SelectElementAccessibilityIssueDetails SelectElementAccessibilityIssueDetails
+ [DataMember(Name = ("elementAccessibilityIssueDetails"), IsRequired = (false))]
+ public CefSharp.DevTools.Audits.ElementAccessibilityIssueDetails ElementAccessibilityIssueDetails
{
get;
set;
@@ -4778,6 +4858,16 @@ namespace CefSharp.DevTools.Audits
set;
}
+ ///
+ /// UnencodedDigestIssueDetails
+ ///
+ [DataMember(Name = ("unencodedDigestIssueDetails"), IsRequired = (false))]
+ public CefSharp.DevTools.Audits.UnencodedDigestIssueDetails UnencodedDigestIssueDetails
+ {
+ get;
+ set;
+ }
+
///
/// UserReidentificationIssueDetails
///
@@ -7428,6 +7518,16 @@ namespace CefSharp.DevTools.CSS
get;
set;
}
+
+ ///
+ /// true if the query contains anchored() queries.
+ ///
+ [DataMember(Name = ("queriesAnchored"), IsRequired = (false))]
+ public bool? QueriesAnchored
+ {
+ get;
+ set;
+ }
}
///
@@ -16217,6 +16317,17 @@ namespace CefSharp.DevTools.Network
get;
set;
}
+
+ ///
+ /// Indicates whether the request was sent through IP Protection proxies. If
+ /// set to true, the request used the IP Protection privacy feature.
+ ///
+ [DataMember(Name = ("isIpProtectionUsed"), IsRequired = (false))]
+ public bool? IsIpProtectionUsed
+ {
+ get;
+ set;
+ }
}
///
@@ -18285,17 +18396,17 @@ namespace CefSharp.DevTools.Network
///
public enum IPAddressSpace
{
+ ///
+ /// Loopback
+ ///
+ [EnumMember(Value = ("Loopback"))]
+ Loopback,
///
/// Local
///
[EnumMember(Value = ("Local"))]
Local,
///
- /// Private
- ///
- [EnumMember(Value = ("Private"))]
- Private,
- ///
/// Public
///
[EnumMember(Value = ("Public"))]
@@ -22322,11 +22433,6 @@ namespace CefSharp.DevTools.Overlay
[EnumMember(Value = ("captureAreaScreenshot"))]
CaptureAreaScreenshot,
///
- /// showDistances
- ///
- [EnumMember(Value = ("showDistances"))]
- ShowDistances,
- ///
/// none
///
[EnumMember(Value = ("none"))]
@@ -22653,6 +22759,11 @@ namespace CefSharp.DevTools.Page
[EnumMember(Value = ("ambient-light-sensor"))]
AmbientLightSensor,
///
+ /// aria-notify
+ ///
+ [EnumMember(Value = ("aria-notify"))]
+ AriaNotify,
+ ///
/// attribution-reporting
///
[EnumMember(Value = ("attribution-reporting"))]
@@ -25847,6 +25958,11 @@ namespace CefSharp.DevTools.Page
[EnumMember(Value = ("SharedWorker"))]
SharedWorker,
///
+ /// SharedWorkerMessage
+ ///
+ [EnumMember(Value = ("SharedWorkerMessage"))]
+ SharedWorkerMessage,
+ ///
/// WebLocks
///
[EnumMember(Value = ("WebLocks"))]
@@ -27472,8 +27588,7 @@ namespace CefSharp.DevTools.Page
}
///
- /// Issued for every compilation cache generated. Is only available
- /// if Page.setGenerateCompilationCache is enabled.
+ /// Issued for every compilation cache generated.
///
[System.Runtime.Serialization.DataContractAttribute]
public class CompilationCacheProducedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase
@@ -35706,7 +35821,12 @@ namespace CefSharp.DevTools.Preload
/// InvalidRulesSkipped
///
[EnumMember(Value = ("InvalidRulesSkipped"))]
- InvalidRulesSkipped
+ InvalidRulesSkipped,
+ ///
+ /// InvalidRulesetLevelTag
+ ///
+ [EnumMember(Value = ("InvalidRulesetLevelTag"))]
+ InvalidRulesetLevelTag
}
///
@@ -36240,7 +36360,12 @@ namespace CefSharp.DevTools.Preload
/// BrowsingDataRemoved
///
[EnumMember(Value = ("BrowsingDataRemoved"))]
- BrowsingDataRemoved
+ BrowsingDataRemoved,
+ ///
+ /// PrerenderHostReused
+ ///
+ [EnumMember(Value = ("PrerenderHostReused"))]
+ PrerenderHostReused
}
///
@@ -43492,6 +43617,32 @@ namespace CefSharp.DevTools.Browser
return _client.ExecuteDevToolsMethodAsync("Browser.setWindowBounds", dict);
}
+ partial void ValidateSetContentsSize(int windowId, int? width = null, int? height = null);
+ ///
+ /// Set size of the browser contents resizing browser window as necessary.
+ ///
+ /// Browser window id.
+ /// The window contents width in DIP. Assumes current width if omitted.Must be specified if 'height' is omitted.
+ /// The window contents height in DIP. Assumes current height if omitted.Must be specified if 'width' is omitted.
+ /// returns System.Threading.Tasks.Task<DevToolsMethodResponse>
+ public System.Threading.Tasks.Task SetContentsSizeAsync(int windowId, int? width = null, int? height = null)
+ {
+ ValidateSetContentsSize(windowId, width, height);
+ var dict = new System.Collections.Generic.Dictionary();
+ dict.Add("windowId", windowId);
+ if (width.HasValue)
+ {
+ dict.Add("width", width.Value);
+ }
+
+ if (height.HasValue)
+ {
+ dict.Add("height", height.Value);
+ }
+
+ return _client.ExecuteDevToolsMethodAsync("Browser.setContentsSize", dict);
+ }
+
partial void ValidateSetDockTile(string badgeLabel = null, byte[] image = null);
///
/// Set dock tile details, platform-specific.
@@ -44178,6 +44329,34 @@ namespace CefSharp.DevTools.CSS
}
}
+namespace CefSharp.DevTools.CSS
+{
+ ///
+ /// GetEnvironmentVariablesResponse
+ ///
+ [DataContract]
+ public class GetEnvironmentVariablesResponse : DevToolsDomainResponseBase
+ {
+ [DataMember]
+ internal object environmentVariables
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// environmentVariables
+ ///
+ public object EnvironmentVariables
+ {
+ get
+ {
+ return environmentVariables;
+ }
+ }
+ }
+}
+
namespace CefSharp.DevTools.CSS
{
///
@@ -45037,6 +45216,16 @@ namespace CefSharp.DevTools.CSS
return _client.ExecuteDevToolsMethodAsync("CSS.getMatchedStylesForNode", dict);
}
+ ///
+ /// Returns the values of the default UA-defined environment variables used in env()
+ ///
+ /// returns System.Threading.Tasks.Task<GetEnvironmentVariablesResponse>
+ public System.Threading.Tasks.Task GetEnvironmentVariablesAsync()
+ {
+ System.Collections.Generic.Dictionary dict = null;
+ return _client.ExecuteDevToolsMethodAsync("CSS.getEnvironmentVariables", dict);
+ }
+
///
/// Returns all media queries parsed by the rendering engine.
///
@@ -46681,6 +46870,34 @@ namespace CefSharp.DevTools.DOM
}
}
+namespace CefSharp.DevTools.DOM
+{
+ ///
+ /// ForceShowPopoverResponse
+ ///
+ [DataContract]
+ public class ForceShowPopoverResponse : DevToolsDomainResponseBase
+ {
+ [DataMember]
+ internal int[] nodeIds
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// nodeIds
+ ///
+ public int[] NodeIds
+ {
+ get
+ {
+ return nodeIds;
+ }
+ }
+ }
+}
+
namespace CefSharp.DevTools.DOM
{
using System.Linq;
@@ -47344,17 +47561,18 @@ namespace CefSharp.DevTools.DOM
return _client.ExecuteDevToolsMethodAsync("DOM.getNodeForLocation", dict);
}
- partial void ValidateGetOuterHTML(int? nodeId = null, int? backendNodeId = null, string objectId = null);
+ partial void ValidateGetOuterHTML(int? nodeId = null, int? backendNodeId = null, string objectId = null, bool? includeShadowDOM = null);
///
/// Returns node's HTML markup.
///
/// Identifier of the node.
/// Identifier of the backend node.
/// JavaScript object id of the node wrapper.
+ /// Include all shadow roots. Equals to false if not specified.
/// returns System.Threading.Tasks.Task<GetOuterHTMLResponse>
- public System.Threading.Tasks.Task GetOuterHTMLAsync(int? nodeId = null, int? backendNodeId = null, string objectId = null)
+ public System.Threading.Tasks.Task GetOuterHTMLAsync(int? nodeId = null, int? backendNodeId = null, string objectId = null, bool? includeShadowDOM = null)
{
- ValidateGetOuterHTML(nodeId, backendNodeId, objectId);
+ ValidateGetOuterHTML(nodeId, backendNodeId, objectId, includeShadowDOM);
var dict = new System.Collections.Generic.Dictionary();
if (nodeId.HasValue)
{
@@ -47371,6 +47589,11 @@ namespace CefSharp.DevTools.DOM
dict.Add("objectId", objectId);
}
+ if (includeShadowDOM.HasValue)
+ {
+ dict.Add("includeShadowDOM", includeShadowDOM.Value);
+ }
+
return _client.ExecuteDevToolsMethodAsync("DOM.getOuterHTML", dict);
}
@@ -47911,23 +48134,24 @@ namespace CefSharp.DevTools.DOM
return _client.ExecuteDevToolsMethodAsync("DOM.getFrameOwner", dict);
}
- partial void ValidateGetContainerForNode(int nodeId, string containerName = null, CefSharp.DevTools.DOM.PhysicalAxes? physicalAxes = null, CefSharp.DevTools.DOM.LogicalAxes? logicalAxes = null, bool? queriesScrollState = null);
+ partial void ValidateGetContainerForNode(int nodeId, string containerName = null, CefSharp.DevTools.DOM.PhysicalAxes? physicalAxes = null, CefSharp.DevTools.DOM.LogicalAxes? logicalAxes = null, bool? queriesScrollState = null, bool? queriesAnchored = null);
///
/// Returns the query container of the given node based on container query
/// conditions: containerName, physical and logical axes, and whether it queries
- /// scroll-state. If no axes are provided and queriesScrollState is false, the
- /// style container is returned, which is the direct parent or the closest
- /// element with a matching container-name.
+ /// scroll-state or anchored elements. If no axes are provided and
+ /// queriesScrollState is false, the style container is returned, which is the
+ /// direct parent or the closest element with a matching container-name.
///
/// nodeId
/// containerName
/// physicalAxes
/// logicalAxes
/// queriesScrollState
+ /// queriesAnchored
/// returns System.Threading.Tasks.Task<GetContainerForNodeResponse>
- public System.Threading.Tasks.Task GetContainerForNodeAsync(int nodeId, string containerName = null, CefSharp.DevTools.DOM.PhysicalAxes? physicalAxes = null, CefSharp.DevTools.DOM.LogicalAxes? logicalAxes = null, bool? queriesScrollState = null)
+ public System.Threading.Tasks.Task GetContainerForNodeAsync(int nodeId, string containerName = null, CefSharp.DevTools.DOM.PhysicalAxes? physicalAxes = null, CefSharp.DevTools.DOM.LogicalAxes? logicalAxes = null, bool? queriesScrollState = null, bool? queriesAnchored = null)
{
- ValidateGetContainerForNode(nodeId, containerName, physicalAxes, logicalAxes, queriesScrollState);
+ ValidateGetContainerForNode(nodeId, containerName, physicalAxes, logicalAxes, queriesScrollState, queriesAnchored);
var dict = new System.Collections.Generic.Dictionary();
dict.Add("nodeId", nodeId);
if (!(string.IsNullOrEmpty(containerName)))
@@ -47950,6 +48174,11 @@ namespace CefSharp.DevTools.DOM
dict.Add("queriesScrollState", queriesScrollState.Value);
}
+ if (queriesAnchored.HasValue)
+ {
+ dict.Add("queriesAnchored", queriesAnchored.Value);
+ }
+
return _client.ExecuteDevToolsMethodAsync("DOM.getContainerForNode", dict);
}
@@ -47988,6 +48217,23 @@ namespace CefSharp.DevTools.DOM
return _client.ExecuteDevToolsMethodAsync("DOM.getAnchorElement", dict);
}
+
+ partial void ValidateForceShowPopover(int nodeId, bool enable);
+ ///
+ /// When enabling, this API force-opens the popover identified by nodeId
+ /// and keeps it open until disabled.
+ ///
+ /// Id of the popover HTMLElement
+ /// If true, opens the popover and keeps it open. If false, closes thepopover if it was previously force-opened.
+ /// returns System.Threading.Tasks.Task<ForceShowPopoverResponse>
+ public System.Threading.Tasks.Task ForceShowPopoverAsync(int nodeId, bool enable)
+ {
+ ValidateForceShowPopover(nodeId, enable);
+ var dict = new System.Collections.Generic.Dictionary();
+ dict.Add("nodeId", nodeId);
+ dict.Add("enable", enable);
+ return _client.ExecuteDevToolsMethodAsync("DOM.forceShowPopover", dict);
+ }
}
}
@@ -49450,6 +49696,24 @@ namespace CefSharp.DevTools.Emulation
return _client.ExecuteDevToolsMethodAsync("Emulation.setDisabledImageTypes", dict);
}
+ partial void ValidateSetDataSaverOverride(bool? dataSaverEnabled = null);
+ ///
+ /// Override the value of navigator.connection.saveData
+ ///
+ /// Override value. Omitting the parameter disables the override.
+ /// returns System.Threading.Tasks.Task<DevToolsMethodResponse>
+ public System.Threading.Tasks.Task SetDataSaverOverrideAsync(bool? dataSaverEnabled = null)
+ {
+ ValidateSetDataSaverOverride(dataSaverEnabled);
+ var dict = new System.Collections.Generic.Dictionary();
+ if (dataSaverEnabled.HasValue)
+ {
+ dict.Add("dataSaverEnabled", dataSaverEnabled.Value);
+ }
+
+ return _client.ExecuteDevToolsMethodAsync("Emulation.setDataSaverOverride", dict);
+ }
+
partial void ValidateSetHardwareConcurrencyOverride(int hardwareConcurrency);
///
/// SetHardwareConcurrencyOverride
@@ -54867,6 +55131,24 @@ namespace CefSharp.DevTools.Page
return errorText;
}
}
+
+ [DataMember]
+ internal bool? isDownload
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// isDownload
+ ///
+ public bool? IsDownload
+ {
+ get
+ {
+ return isDownload;
+ }
+ }
}
}
@@ -55542,8 +55824,7 @@ namespace CefSharp.DevTools.Page
}
///
- /// Issued for every compilation cache generated. Is only available
- /// if Page.setGenerateCompilationCache is enabled.
+ /// Issued for every compilation cache generated.
///
public event System.EventHandler CompilationCacheProduced
{
@@ -56873,20 +57154,6 @@ namespace CefSharp.DevTools.ServiceWorker
return _client.ExecuteDevToolsMethodAsync("ServiceWorker.enable", dict);
}
- partial void ValidateInspectWorker(string versionId);
- ///
- /// InspectWorker
- ///
- /// versionId
- /// returns System.Threading.Tasks.Task<DevToolsMethodResponse>
- public System.Threading.Tasks.Task InspectWorkerAsync(string versionId)
- {
- ValidateInspectWorker(versionId);
- var dict = new System.Collections.Generic.Dictionary();
- dict.Add("versionId", versionId);
- return _client.ExecuteDevToolsMethodAsync("ServiceWorker.inspectWorker", dict);
- }
-
partial void ValidateSetForceUpdateOnPageLoad(bool forceUpdateOnPageLoad);
///
/// SetForceUpdateOnPageLoad
@@ -58613,6 +58880,34 @@ namespace CefSharp.DevTools.Target
}
}
+namespace CefSharp.DevTools.Target
+{
+ ///
+ /// OpenDevToolsResponse
+ ///
+ [DataContract]
+ public class OpenDevToolsResponse : DevToolsDomainResponseBase
+ {
+ [DataMember]
+ internal string targetId
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// targetId
+ ///
+ public string TargetId
+ {
+ get
+ {
+ return targetId;
+ }
+ }
+ }
+}
+
namespace CefSharp.DevTools.Target
{
using System.Linq;
@@ -59136,6 +59431,20 @@ namespace CefSharp.DevTools.Target
dict.Add("locations", locations.Select(x => x.ToDictionary()));
return _client.ExecuteDevToolsMethodAsync("Target.setRemoteLocations", dict);
}
+
+ partial void ValidateOpenDevTools(string targetId);
+ ///
+ /// Opens a DevTools window for the target.
+ ///
+ /// This can be the page or tab target ID.
+ /// returns System.Threading.Tasks.Task<OpenDevToolsResponse>
+ public System.Threading.Tasks.Task OpenDevToolsAsync(string targetId)
+ {
+ ValidateOpenDevTools(targetId);
+ var dict = new System.Collections.Generic.Dictionary();
+ dict.Add("targetId", targetId);
+ return _client.ExecuteDevToolsMethodAsync("Target.openDevTools", dict);
+ }
}
}
diff --git a/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs b/CefSharp.Core/DevTools/DevToolsClient.Generated.netcore.cs
index 120191b3e..c322706fe 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 139.0.7258.139
+// CHROMIUM VERSION 140.0.7339.185
using System.Text.Json.Serialization;
namespace CefSharp.DevTools.Accessibility
@@ -2773,6 +2773,33 @@ namespace CefSharp.DevTools.Audits
ValidationFailedIntegrityMismatch
}
+ ///
+ /// UnencodedDigestError
+ ///
+ public enum UnencodedDigestError
+ {
+ ///
+ /// MalformedDictionary
+ ///
+ [JsonPropertyName("MalformedDictionary")]
+ MalformedDictionary,
+ ///
+ /// UnknownAlgorithm
+ ///
+ [JsonPropertyName("UnknownAlgorithm")]
+ UnknownAlgorithm,
+ ///
+ /// IncorrectDigestType
+ ///
+ [JsonPropertyName("IncorrectDigestType")]
+ IncorrectDigestType,
+ ///
+ /// IncorrectDigestLength
+ ///
+ [JsonPropertyName("IncorrectDigestLength")]
+ IncorrectDigestLength
+ }
+
///
/// Details for issues around "Attribution Reporting API" usage.
/// Explainer: https://github.com/WICG/attribution-reporting-api
@@ -2984,6 +3011,33 @@ namespace CefSharp.DevTools.Audits
}
}
+ ///
+ /// UnencodedDigestIssueDetails
+ ///
+ public partial class UnencodedDigestIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase
+ {
+ ///
+ /// Error
+ ///
+ [JsonPropertyName("error")]
+ public CefSharp.DevTools.Audits.UnencodedDigestError Error
+ {
+ get;
+ set;
+ }
+
+ ///
+ /// Request
+ ///
+ [JsonPropertyName("request")]
+ [System.Diagnostics.CodeAnalysis.DisallowNull]
+ public CefSharp.DevTools.Audits.AffectedRequest Request
+ {
+ get;
+ set;
+ }
+ }
+
///
/// GenericIssueErrorType
///
@@ -3677,9 +3731,9 @@ namespace CefSharp.DevTools.Audits
}
///
- /// SelectElementAccessibilityIssueReason
+ /// ElementAccessibilityIssueReason
///
- public enum SelectElementAccessibilityIssueReason
+ public enum ElementAccessibilityIssueReason
{
///
/// DisallowedSelectChild
@@ -3705,13 +3759,18 @@ namespace CefSharp.DevTools.Audits
/// InteractiveContentLegendChild
///
[JsonPropertyName("InteractiveContentLegendChild")]
- InteractiveContentLegendChild
+ InteractiveContentLegendChild,
+ ///
+ /// InteractiveContentSummaryDescendant
+ ///
+ [JsonPropertyName("InteractiveContentSummaryDescendant")]
+ InteractiveContentSummaryDescendant
}
///
- /// This issue warns about errors in the select element content model.
+ /// This issue warns about errors in the select or summary element content model.
///
- public partial class SelectElementAccessibilityIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase
+ public partial class ElementAccessibilityIssueDetails : CefSharp.DevTools.DevToolsDomainEntityBase
{
///
/// NodeId
@@ -3724,10 +3783,10 @@ namespace CefSharp.DevTools.Audits
}
///
- /// SelectElementAccessibilityIssueReason
+ /// ElementAccessibilityIssueReason
///
- [JsonPropertyName("selectElementAccessibilityIssueReason")]
- public CefSharp.DevTools.Audits.SelectElementAccessibilityIssueReason SelectElementAccessibilityIssueReason
+ [JsonPropertyName("elementAccessibilityIssueReason")]
+ public CefSharp.DevTools.Audits.ElementAccessibilityIssueReason ElementAccessibilityIssueReason
{
get;
set;
@@ -4025,16 +4084,21 @@ namespace CefSharp.DevTools.Audits
[JsonPropertyName("SharedDictionaryIssue")]
SharedDictionaryIssue,
///
- /// SelectElementAccessibilityIssue
+ /// ElementAccessibilityIssue
///
- [JsonPropertyName("SelectElementAccessibilityIssue")]
- SelectElementAccessibilityIssue,
+ [JsonPropertyName("ElementAccessibilityIssue")]
+ ElementAccessibilityIssue,
///
/// SRIMessageSignatureIssue
///
[JsonPropertyName("SRIMessageSignatureIssue")]
SRIMessageSignatureIssue,
///
+ /// UnencodedDigestIssue
+ ///
+ [JsonPropertyName("UnencodedDigestIssue")]
+ UnencodedDigestIssue,
+ ///
/// UserReidentificationIssue
///
[JsonPropertyName("UserReidentificationIssue")]
@@ -4269,10 +4333,10 @@ namespace CefSharp.DevTools.Audits
}
///
- /// SelectElementAccessibilityIssueDetails
+ /// ElementAccessibilityIssueDetails
///
- [JsonPropertyName("selectElementAccessibilityIssueDetails")]
- public CefSharp.DevTools.Audits.SelectElementAccessibilityIssueDetails SelectElementAccessibilityIssueDetails
+ [JsonPropertyName("elementAccessibilityIssueDetails")]
+ public CefSharp.DevTools.Audits.ElementAccessibilityIssueDetails ElementAccessibilityIssueDetails
{
get;
set;
@@ -4288,6 +4352,16 @@ namespace CefSharp.DevTools.Audits
set;
}
+ ///
+ /// UnencodedDigestIssueDetails
+ ///
+ [JsonPropertyName("unencodedDigestIssueDetails")]
+ public CefSharp.DevTools.Audits.UnencodedDigestIssueDetails UnencodedDigestIssueDetails
+ {
+ get;
+ set;
+ }
+
///
/// UserReidentificationIssueDetails
///
@@ -6767,6 +6841,16 @@ namespace CefSharp.DevTools.CSS
get;
set;
}
+
+ ///
+ /// true if the query contains anchored() queries.
+ ///
+ [JsonPropertyName("queriesAnchored")]
+ public bool? QueriesAnchored
+ {
+ get;
+ set;
+ }
}
///
@@ -15092,6 +15176,17 @@ namespace CefSharp.DevTools.Network
get;
set;
}
+
+ ///
+ /// Indicates whether the request was sent through IP Protection proxies. If
+ /// set to true, the request used the IP Protection privacy feature.
+ ///
+ [JsonPropertyName("isIpProtectionUsed")]
+ public bool? IsIpProtectionUsed
+ {
+ get;
+ set;
+ }
}
///
@@ -16862,17 +16957,17 @@ namespace CefSharp.DevTools.Network
///
public enum IPAddressSpace
{
+ ///
+ /// Loopback
+ ///
+ [JsonPropertyName("Loopback")]
+ Loopback,
///
/// Local
///
[JsonPropertyName("Local")]
Local,
///
- /// Private
- ///
- [JsonPropertyName("Private")]
- Private,
- ///
/// Public
///
[JsonPropertyName("Public")]
@@ -20760,11 +20855,6 @@ namespace CefSharp.DevTools.Overlay
[JsonPropertyName("captureAreaScreenshot")]
CaptureAreaScreenshot,
///
- /// showDistances
- ///
- [JsonPropertyName("showDistances")]
- ShowDistances,
- ///
/// none
///
[JsonPropertyName("none")]
@@ -21060,6 +21150,11 @@ namespace CefSharp.DevTools.Page
[JsonPropertyName("ambient-light-sensor")]
AmbientLightSensor,
///
+ /// aria-notify
+ ///
+ [JsonPropertyName("aria-notify")]
+ AriaNotify,
+ ///
/// attribution-reporting
///
[JsonPropertyName("attribution-reporting")]
@@ -24105,6 +24200,11 @@ namespace CefSharp.DevTools.Page
[JsonPropertyName("SharedWorker")]
SharedWorker,
///
+ /// SharedWorkerMessage
+ ///
+ [JsonPropertyName("SharedWorkerMessage")]
+ SharedWorkerMessage,
+ ///
/// WebLocks
///
[JsonPropertyName("WebLocks")]
@@ -25619,8 +25719,7 @@ namespace CefSharp.DevTools.Page
}
///
- /// Issued for every compilation cache generated. Is only available
- /// if Page.setGenerateCompilationCache is enabled.
+ /// Issued for every compilation cache generated.
///
public class CompilationCacheProducedEventArgs : CefSharp.DevTools.DevToolsDomainEventArgsBase
{
@@ -33393,7 +33492,12 @@ namespace CefSharp.DevTools.Preload
/// InvalidRulesSkipped
///
[JsonPropertyName("InvalidRulesSkipped")]
- InvalidRulesSkipped
+ InvalidRulesSkipped,
+ ///
+ /// InvalidRulesetLevelTag
+ ///
+ [JsonPropertyName("InvalidRulesetLevelTag")]
+ InvalidRulesetLevelTag
}
///
@@ -33897,7 +34001,12 @@ namespace CefSharp.DevTools.Preload
/// BrowsingDataRemoved
///
[JsonPropertyName("BrowsingDataRemoved")]
- BrowsingDataRemoved
+ BrowsingDataRemoved,
+ ///
+ /// PrerenderHostReused
+ ///
+ [JsonPropertyName("PrerenderHostReused")]
+ PrerenderHostReused
}
///
@@ -40700,6 +40809,32 @@ namespace CefSharp.DevTools.Browser
return _client.ExecuteDevToolsMethodAsync("Browser.setWindowBounds", dict);
}
+ partial void ValidateSetContentsSize(int windowId, int? width = null, int? height = null);
+ ///
+ /// Set size of the browser contents resizing browser window as necessary.
+ ///
+ /// Browser window id.
+ /// The window contents width in DIP. Assumes current width if omitted.Must be specified if 'height' is omitted.
+ /// The window contents height in DIP. Assumes current height if omitted.Must be specified if 'width' is omitted.
+ /// returns System.Threading.Tasks.Task<DevToolsMethodResponse>
+ public System.Threading.Tasks.Task SetContentsSizeAsync(int windowId, int? width = null, int? height = null)
+ {
+ ValidateSetContentsSize(windowId, width, height);
+ var dict = new System.Collections.Generic.Dictionary();
+ dict.Add("windowId", windowId);
+ if (width.HasValue)
+ {
+ dict.Add("width", width.Value);
+ }
+
+ if (height.HasValue)
+ {
+ dict.Add("height", height.Value);
+ }
+
+ return _client.ExecuteDevToolsMethodAsync("Browser.setContentsSize", dict);
+ }
+
partial void ValidateSetDockTile(string badgeLabel = null, byte[] image = null);
///
/// Set dock tile details, platform-specific.
@@ -41180,6 +41315,26 @@ namespace CefSharp.DevTools.CSS
}
}
+namespace CefSharp.DevTools.CSS
+{
+ ///
+ /// GetEnvironmentVariablesResponse
+ ///
+ public class GetEnvironmentVariablesResponse : DevToolsDomainResponseBase
+ {
+ ///
+ /// environmentVariables
+ ///
+ [JsonInclude]
+ [JsonPropertyName("environmentVariables")]
+ public object EnvironmentVariables
+ {
+ get;
+ private set;
+ }
+ }
+}
+
namespace CefSharp.DevTools.CSS
{
///
@@ -41896,6 +42051,16 @@ namespace CefSharp.DevTools.CSS
return _client.ExecuteDevToolsMethodAsync("CSS.getMatchedStylesForNode", dict);
}
+ ///
+ /// Returns the values of the default UA-defined environment variables used in env()
+ ///
+ /// returns System.Threading.Tasks.Task<GetEnvironmentVariablesResponse>
+ public System.Threading.Tasks.Task GetEnvironmentVariablesAsync()
+ {
+ System.Collections.Generic.Dictionary dict = null;
+ return _client.ExecuteDevToolsMethodAsync("CSS.getEnvironmentVariables", dict);
+ }
+
///
/// Returns all media queries parsed by the rendering engine.
///
@@ -43241,6 +43406,26 @@ namespace CefSharp.DevTools.DOM
}
}
+namespace CefSharp.DevTools.DOM
+{
+ ///
+ /// ForceShowPopoverResponse
+ ///
+ public class ForceShowPopoverResponse : DevToolsDomainResponseBase
+ {
+ ///
+ /// nodeIds
+ ///
+ [JsonInclude]
+ [JsonPropertyName("nodeIds")]
+ public int[] NodeIds
+ {
+ get;
+ private set;
+ }
+ }
+}
+
namespace CefSharp.DevTools.DOM
{
using System.Linq;
@@ -43904,17 +44089,18 @@ namespace CefSharp.DevTools.DOM
return _client.ExecuteDevToolsMethodAsync("DOM.getNodeForLocation", dict);
}
- partial void ValidateGetOuterHTML(int? nodeId = null, int? backendNodeId = null, string objectId = null);
+ partial void ValidateGetOuterHTML(int? nodeId = null, int? backendNodeId = null, string objectId = null, bool? includeShadowDOM = null);
///
/// Returns node's HTML markup.
///
/// Identifier of the node.
/// Identifier of the backend node.
/// JavaScript object id of the node wrapper.
+ /// Include all shadow roots. Equals to false if not specified.
/// returns System.Threading.Tasks.Task<GetOuterHTMLResponse>
- public System.Threading.Tasks.Task GetOuterHTMLAsync(int? nodeId = null, int? backendNodeId = null, string objectId = null)
+ public System.Threading.Tasks.Task GetOuterHTMLAsync(int? nodeId = null, int? backendNodeId = null, string objectId = null, bool? includeShadowDOM = null)
{
- ValidateGetOuterHTML(nodeId, backendNodeId, objectId);
+ ValidateGetOuterHTML(nodeId, backendNodeId, objectId, includeShadowDOM);
var dict = new System.Collections.Generic.Dictionary();
if (nodeId.HasValue)
{
@@ -43931,6 +44117,11 @@ namespace CefSharp.DevTools.DOM
dict.Add("objectId", objectId);
}
+ if (includeShadowDOM.HasValue)
+ {
+ dict.Add("includeShadowDOM", includeShadowDOM.Value);
+ }
+
return _client.ExecuteDevToolsMethodAsync("DOM.getOuterHTML", dict);
}
@@ -44471,23 +44662,24 @@ namespace CefSharp.DevTools.DOM
return _client.ExecuteDevToolsMethodAsync("DOM.getFrameOwner", dict);
}
- partial void ValidateGetContainerForNode(int nodeId, string containerName = null, CefSharp.DevTools.DOM.PhysicalAxes? physicalAxes = null, CefSharp.DevTools.DOM.LogicalAxes? logicalAxes = null, bool? queriesScrollState = null);
+ partial void ValidateGetContainerForNode(int nodeId, string containerName = null, CefSharp.DevTools.DOM.PhysicalAxes? physicalAxes = null, CefSharp.DevTools.DOM.LogicalAxes? logicalAxes = null, bool? queriesScrollState = null, bool? queriesAnchored = null);
///
/// Returns the query container of the given node based on container query
/// conditions: containerName, physical and logical axes, and whether it queries
- /// scroll-state. If no axes are provided and queriesScrollState is false, the
- /// style container is returned, which is the direct parent or the closest
- /// element with a matching container-name.
+ /// scroll-state or anchored elements. If no axes are provided and
+ /// queriesScrollState is false, the style container is returned, which is the
+ /// direct parent or the closest element with a matching container-name.
///
/// nodeId
/// containerName
/// physicalAxes
/// logicalAxes
/// queriesScrollState
+ /// queriesAnchored
/// returns System.Threading.Tasks.Task<GetContainerForNodeResponse>
- public System.Threading.Tasks.Task GetContainerForNodeAsync(int nodeId, string containerName = null, CefSharp.DevTools.DOM.PhysicalAxes? physicalAxes = null, CefSharp.DevTools.DOM.LogicalAxes? logicalAxes = null, bool? queriesScrollState = null)
+ public System.Threading.Tasks.Task GetContainerForNodeAsync(int nodeId, string containerName = null, CefSharp.DevTools.DOM.PhysicalAxes? physicalAxes = null, CefSharp.DevTools.DOM.LogicalAxes? logicalAxes = null, bool? queriesScrollState = null, bool? queriesAnchored = null)
{
- ValidateGetContainerForNode(nodeId, containerName, physicalAxes, logicalAxes, queriesScrollState);
+ ValidateGetContainerForNode(nodeId, containerName, physicalAxes, logicalAxes, queriesScrollState, queriesAnchored);
var dict = new System.Collections.Generic.Dictionary();
dict.Add("nodeId", nodeId);
if (!(string.IsNullOrEmpty(containerName)))
@@ -44510,6 +44702,11 @@ namespace CefSharp.DevTools.DOM
dict.Add("queriesScrollState", queriesScrollState.Value);
}
+ if (queriesAnchored.HasValue)
+ {
+ dict.Add("queriesAnchored", queriesAnchored.Value);
+ }
+
return _client.ExecuteDevToolsMethodAsync("DOM.getContainerForNode", dict);
}
@@ -44548,6 +44745,23 @@ namespace CefSharp.DevTools.DOM
return _client.ExecuteDevToolsMethodAsync("DOM.getAnchorElement", dict);
}
+
+ partial void ValidateForceShowPopover(int nodeId, bool enable);
+ ///
+ /// When enabling, this API force-opens the popover identified by nodeId
+ /// and keeps it open until disabled.
+ ///
+ /// Id of the popover HTMLElement
+ /// If true, opens the popover and keeps it open. If false, closes thepopover if it was previously force-opened.
+ /// returns System.Threading.Tasks.Task<ForceShowPopoverResponse>
+ public System.Threading.Tasks.Task ForceShowPopoverAsync(int nodeId, bool enable)
+ {
+ ValidateForceShowPopover(nodeId, enable);
+ var dict = new System.Collections.Generic.Dictionary();
+ dict.Add("nodeId", nodeId);
+ dict.Add("enable", enable);
+ return _client.ExecuteDevToolsMethodAsync("DOM.forceShowPopover", dict);
+ }
}
}
@@ -45963,6 +46177,24 @@ namespace CefSharp.DevTools.Emulation
return _client.ExecuteDevToolsMethodAsync("Emulation.setDisabledImageTypes", dict);
}
+ partial void ValidateSetDataSaverOverride(bool? dataSaverEnabled = null);
+ ///
+ /// Override the value of navigator.connection.saveData
+ ///
+ /// Override value. Omitting the parameter disables the override.
+ /// returns System.Threading.Tasks.Task<DevToolsMethodResponse>
+ public System.Threading.Tasks.Task SetDataSaverOverrideAsync(bool? dataSaverEnabled = null)
+ {
+ ValidateSetDataSaverOverride(dataSaverEnabled);
+ var dict = new System.Collections.Generic.Dictionary();
+ if (dataSaverEnabled.HasValue)
+ {
+ dict.Add("dataSaverEnabled", dataSaverEnabled.Value);
+ }
+
+ return _client.ExecuteDevToolsMethodAsync("Emulation.setDataSaverOverride", dict);
+ }
+
partial void ValidateSetHardwareConcurrencyOverride(int hardwareConcurrency);
///
/// SetHardwareConcurrencyOverride
@@ -50836,6 +51068,17 @@ namespace CefSharp.DevTools.Page
get;
private set;
}
+
+ ///
+ /// isDownload
+ ///
+ [JsonInclude]
+ [JsonPropertyName("isDownload")]
+ public bool? IsDownload
+ {
+ get;
+ private set;
+ }
}
}
@@ -51472,8 +51715,7 @@ namespace CefSharp.DevTools.Page
}
///
- /// Issued for every compilation cache generated. Is only available
- /// if Page.setGenerateCompilationCache is enabled.
+ /// Issued for every compilation cache generated.
///
public event System.EventHandler CompilationCacheProduced
{
@@ -52795,20 +53037,6 @@ namespace CefSharp.DevTools.ServiceWorker
return _client.ExecuteDevToolsMethodAsync("ServiceWorker.enable", dict);
}
- partial void ValidateInspectWorker(string versionId);
- ///
- /// InspectWorker
- ///
- /// versionId
- /// returns System.Threading.Tasks.Task<DevToolsMethodResponse>
- public System.Threading.Tasks.Task InspectWorkerAsync(string versionId)
- {
- ValidateInspectWorker(versionId);
- var dict = new System.Collections.Generic.Dictionary();
- dict.Add("versionId", versionId);
- return _client.ExecuteDevToolsMethodAsync("ServiceWorker.inspectWorker", dict);
- }
-
partial void ValidateSetForceUpdateOnPageLoad(bool forceUpdateOnPageLoad);
///
/// SetForceUpdateOnPageLoad
@@ -54309,6 +54537,26 @@ namespace CefSharp.DevTools.Target
}
}
+namespace CefSharp.DevTools.Target
+{
+ ///
+ /// OpenDevToolsResponse
+ ///
+ public class OpenDevToolsResponse : DevToolsDomainResponseBase
+ {
+ ///
+ /// targetId
+ ///
+ [JsonInclude]
+ [JsonPropertyName("targetId")]
+ public string TargetId
+ {
+ get;
+ private set;
+ }
+ }
+}
+
namespace CefSharp.DevTools.Target
{
using System.Linq;
@@ -54832,6 +55080,20 @@ namespace CefSharp.DevTools.Target
dict.Add("locations", locations.Select(x => x.ToDictionary()));
return _client.ExecuteDevToolsMethodAsync("Target.setRemoteLocations", dict);
}
+
+ partial void ValidateOpenDevTools(string targetId);
+ ///
+ /// Opens a DevTools window for the target.
+ ///
+ /// This can be the page or tab target ID.
+ /// returns System.Threading.Tasks.Task<OpenDevToolsResponse>
+ public System.Threading.Tasks.Task OpenDevToolsAsync(string targetId)
+ {
+ ValidateOpenDevTools(targetId);
+ var dict = new System.Collections.Generic.Dictionary();
+ dict.Add("targetId", targetId);
+ return _client.ExecuteDevToolsMethodAsync("Target.openDevTools", dict);
+ }
}
}