From 17413e78b57cd5e9e308adf5f141ca282c019f91 Mon Sep 17 00:00:00 2001 From: Selenium CI Bot Date: Thu, 18 Sep 2025 14:13:25 +0000 Subject: [PATCH 01/14] update devtools versions --- Rakefile | 2 +- .../chromium/{v137 => v140}/BUILD.bazel | 0 .../{v137 => v140}/browser_protocol.pdl | 434 +++++++++++++++--- .../chromium/{v137 => v140}/js_protocol.pdl | 0 dotnet/selenium-dotnet-version.bzl | 2 +- .../src/webdriver/DevTools/DevToolsDomains.cs | 4 +- .../V137Domains.cs => v140/V140Domains.cs} | 22 +- .../V140JavaScript.cs} | 16 +- .../{v137/V137Log.cs => v140/V140Log.cs} | 14 +- .../V137Network.cs => v140/V140Network.cs} | 24 +- .../V137Target.cs => v140/V140Target.cs} | 14 +- .../common/DevTools/DevToolsConsoleTest.cs | 2 +- .../test/common/DevTools/DevToolsLogTest.cs | 2 +- .../common/DevTools/DevToolsNetworkTest.cs | 2 +- .../DevTools/DevToolsPerformanceTest.cs | 2 +- .../common/DevTools/DevToolsProfilerTest.cs | 2 +- .../common/DevTools/DevToolsSecurityTest.cs | 2 +- .../test/common/DevTools/DevToolsTabsTest.cs | 2 +- .../common/DevTools/DevToolsTargetTest.cs | 4 +- .../devtools/{v137 => v140}/BUILD.bazel | 2 +- .../v140CdpInfo.java} | 8 +- .../v140Domains.java} | 26 +- .../v137Events.java => v140/v140Events.java} | 18 +- .../v140Javascript.java} | 14 +- .../{v137/v137Log.java => v140/v140Log.java} | 10 +- .../v140Network.java} | 20 +- .../v137Target.java => v140/v140Target.java} | 24 +- .../org/openqa/selenium/devtools/versions.bzl | 2 +- javascript/selenium-webdriver/BUILD.bazel | 2 +- py/BUILD.bazel | 2 +- rb/Gemfile.lock | 2 +- rb/lib/selenium/devtools/BUILD.bazel | 2 +- rb/lib/selenium/devtools/version.rb | 2 +- 33 files changed, 492 insertions(+), 192 deletions(-) rename common/devtools/chromium/{v137 => v140}/BUILD.bazel (100%) rename common/devtools/chromium/{v137 => v140}/browser_protocol.pdl (97%) rename common/devtools/chromium/{v137 => v140}/js_protocol.pdl (100%) rename dotnet/src/webdriver/DevTools/{v137/V137Domains.cs => v140/V140Domains.cs} (78%) rename dotnet/src/webdriver/DevTools/{v137/V137JavaScript.cs => v140/V140JavaScript.cs} (94%) rename dotnet/src/webdriver/DevTools/{v137/V137Log.cs => v140/V140Log.cs} (88%) rename dotnet/src/webdriver/DevTools/{v137/V137Network.cs => v140/V140Network.cs} (95%) rename dotnet/src/webdriver/DevTools/{v137/V137Target.cs => v140/V140Target.cs} (94%) rename java/src/org/openqa/selenium/devtools/{v137 => v140}/BUILD.bazel (98%) rename java/src/org/openqa/selenium/devtools/{v137/v137CdpInfo.java => v140/v140CdpInfo.java} (86%) rename java/src/org/openqa/selenium/devtools/{v137/v137Domains.java => v140/v140Domains.java} (77%) rename java/src/org/openqa/selenium/devtools/{v137/v137Events.java => v140/v140Events.java} (86%) rename java/src/org/openqa/selenium/devtools/{v137/v137Javascript.java => v140/v140Javascript.java} (85%) rename java/src/org/openqa/selenium/devtools/{v137/v137Log.java => v140/v140Log.java} (89%) rename java/src/org/openqa/selenium/devtools/{v137/v137Network.java => v140/v140Network.java} (92%) rename java/src/org/openqa/selenium/devtools/{v137/v137Target.java => v140/v140Target.java} (83%) diff --git a/Rakefile b/Rakefile index ec93558514cb2..73936caa4ff04 100644 --- a/Rakefile +++ b/Rakefile @@ -96,7 +96,7 @@ task '//java/test/org/openqa/selenium/environment/webserver:webserver:uber' => [ JAVA_RELEASE_TARGETS = %w[ //java/src/org/openqa/selenium/chrome:chrome.publish //java/src/org/openqa/selenium/chromium:chromium.publish - //java/src/org/openqa/selenium/devtools/v137:v137.publish + //java/src/org/openqa/selenium/devtools/v140:v140.publish //java/src/org/openqa/selenium/devtools/v138:v138.publish //java/src/org/openqa/selenium/devtools/v139:v139.publish //java/src/org/openqa/selenium/edge:edge.publish diff --git a/common/devtools/chromium/v137/BUILD.bazel b/common/devtools/chromium/v140/BUILD.bazel similarity index 100% rename from common/devtools/chromium/v137/BUILD.bazel rename to common/devtools/chromium/v140/BUILD.bazel diff --git a/common/devtools/chromium/v137/browser_protocol.pdl b/common/devtools/chromium/v140/browser_protocol.pdl similarity index 97% rename from common/devtools/chromium/v137/browser_protocol.pdl rename to common/devtools/chromium/v140/browser_protocol.pdl index db00f32e16afa..64b9c19d9a2fe 100644 --- a/common/devtools/chromium/v137/browser_protocol.pdl +++ b/common/devtools/chromium/v140/browser_protocol.pdl @@ -825,6 +825,13 @@ experimental domain Audits ValidationFailedSignatureMismatch ValidationFailedIntegrityMismatch + type UnencodedDigestError extends string + enum + MalformedDictionary + UnknownAlgorithm + IncorrectDigestType + IncorrectDigestLength + # Details for issues around "Attribution Reporting API" usage. # Explainer: https://github.com/WICG/attribution-reporting-api type AttributionReportingIssueDetails extends object @@ -863,6 +870,11 @@ experimental domain Audits array of string integrityAssertions AffectedRequest request + type UnencodedDigestIssueDetails extends object + properties + UnencodedDigestError error + AffectedRequest request + type GenericIssueErrorType extends string enum FormLabelForNameError @@ -1031,19 +1043,20 @@ experimental domain Audits # Additional information about the Partitioning Blob URL issue. PartitioningBlobURLInfo partitioningBlobURLInfo - type SelectElementAccessibilityIssueReason extends string + type ElementAccessibilityIssueReason extends string enum DisallowedSelectChild DisallowedOptGroupChild NonPhrasingContentOptionChild InteractiveContentOptionChild InteractiveContentLegendChild + InteractiveContentSummaryDescendant - # This issue warns about errors in the select element content model. - type SelectElementAccessibilityIssueDetails extends object + # This issue warns about errors in the select or summary element content model. + type ElementAccessibilityIssueDetails extends object properties DOM.BackendNodeId nodeId - SelectElementAccessibilityIssueReason selectElementAccessibilityIssueReason + ElementAccessibilityIssueReason elementAccessibilityIssueReason boolean hasDisallowedAttributes type StyleSheetLoadingIssueReason extends string @@ -1079,6 +1092,19 @@ experimental domain Audits # The value of the property rule property that failed to parse optional string propertyValue + type UserReidentificationIssueType extends string + enum + BlockedFrameNavigation + BlockedSubresource + + # This issue warns about uses of APIs that may be considered misuse to + # re-identify users. + type UserReidentificationIssueDetails extends object + properties + UserReidentificationIssueType type + # Applies to BlockedFrameNavigation and BlockedSubresource issue types. + optional AffectedRequest request + # A unique identifier for the type of issue. Each type may use one of the # optional fields in InspectorIssueDetails to convey more specific # information about the kind of issue. @@ -1107,8 +1133,10 @@ experimental domain Audits FederatedAuthUserInfoRequestIssue PropertyRuleIssue SharedDictionaryIssue - SelectElementAccessibilityIssue + ElementAccessibilityIssue SRIMessageSignatureIssue + UnencodedDigestIssue + UserReidentificationIssue # This struct holds a list of optional fields with additional information # specific to the kind of issue. When adding a new issue code, please also @@ -1137,8 +1165,10 @@ experimental domain Audits optional PropertyRuleIssueDetails propertyRuleIssueDetails optional FederatedAuthUserInfoRequestIssueDetails federatedAuthUserInfoRequestIssueDetails optional SharedDictionaryIssueDetails sharedDictionaryIssueDetails - optional SelectElementAccessibilityIssueDetails selectElementAccessibilityIssueDetails + optional ElementAccessibilityIssueDetails elementAccessibilityIssueDetails optional SRIMessageSignatureIssueDetails sriMessageSignatureIssueDetails + optional UnencodedDigestIssueDetails unencodedDigestIssueDetails + optional UserReidentificationIssueDetails userReidentificationIssueDetails # A unique id for a DevTools inspector issue. Allows other entities (e.g. # exceptions, CDP message, console messages, etc.) to reference an issue. @@ -1619,6 +1649,10 @@ domain Browser inProgress completed canceled + # If download is "completed", provides the path of the downloaded file. + # Depending on the platform, it is not guaranteed to be set, nor the file + # is guaranteed to exist. + experimental optional string filePath # Close browser gracefully. command close @@ -1728,6 +1762,18 @@ domain Browser # with 'left', 'top', 'width' or 'height'. Leaves unspecified fields unchanged. Bounds bounds + # Set size of the browser contents resizing browser window as necessary. + experimental command setContentsSize + parameters + # Browser window id. + WindowID windowId + # The window contents width in DIP. Assumes current width if omitted. + # Must be specified if 'height' is omitted. + optional integer width + # The window contents height in DIP. Assumes current height if omitted. + # Must be specified if 'width' is omitted. + optional integer height + # Set dock tile details, platform-specific. experimental command setDockTile parameters @@ -2102,6 +2148,8 @@ experimental domain CSS optional DOM.LogicalAxes logicalAxes # true if the query contains scroll-state() queries. optional boolean queriesScrollState + # true if the query contains anchored() queries. + optional boolean queriesAnchored # CSS Supports at-rule descriptor. experimental type CSSSupports extends object @@ -2527,6 +2575,11 @@ experimental domain CSS # A list of CSS at-function rules referenced by styles of this node. experimental optional array of CSSFunctionRule cssFunctionRules + # Returns the values of the default UA-defined environment variables used in env() + experimental command getEnvironmentVariables + returns + object environmentVariables + # Returns all media queries parsed by the rendering engine. command getMediaQueries returns @@ -2987,12 +3040,14 @@ domain DOM view-transition view-transition-group view-transition-image-pair + view-transition-group-children view-transition-old view-transition-new placeholder file-selector-button details-content picker + permission-icon # Shadow root type. type ShadowRootType extends string @@ -3364,6 +3419,8 @@ domain DOM optional BackendNodeId backendNodeId # JavaScript object id of the node wrapper. optional Runtime.RemoteObjectId objectId + # Include all shadow roots. Equals to false if not specified. + experimental optional boolean includeShadowDOM returns # Outer HTML markup. string outerHTML @@ -3496,8 +3553,12 @@ domain DOM # Get the popover target for a given element. In this case, this given # element can only be an HTMLFormControlElement (,