From 401c35e77e7ecde013ae38c99e5c8f02ce1fb2f8 Mon Sep 17 00:00:00 2001 From: Selenium CI Bot Date: Wed, 30 Apr 2025 21:08:54 +0000 Subject: [PATCH 1/7] update pinned browser versions --- common/repositories.bzl | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/common/repositories.bzl b/common/repositories.bzl index f6da3dafd4c48..a2283e3af35d6 100644 --- a/common/repositories.bzl +++ b/common/repositories.bzl @@ -11,8 +11,8 @@ def pin_browsers(): http_archive( name = "linux_firefox", - url = "https://ftp.mozilla.org/pub/firefox/releases/137.0.2/linux-x86_64/en-US/firefox-137.0.2.tar.xz", - sha256 = "3d6f07eddbd98ae96b55cd6ec95fcf18b61a139a0c68739c098954b5015c4b11", + url = "https://ftp.mozilla.org/pub/firefox/releases/138.0/linux-x86_64/en-US/firefox-138.0.tar.xz", + sha256 = "a9b83684f6fa9eecf29c79119bab9239c4255ac53ce12126ced524cc8c7da758", build_file_content = """ load("@aspect_rules_js//js:defs.bzl", "js_library") package(default_visibility = ["//visibility:public"]) @@ -33,8 +33,8 @@ js_library( dmg_archive( name = "mac_firefox", - url = "https://ftp.mozilla.org/pub/firefox/releases/137.0.2/mac/en-US/Firefox%20137.0.2.dmg", - sha256 = "0338912d47bdcb9ea2c09bcf31b7e68a4ded1a083b60c129781534d535601ed5", + url = "https://ftp.mozilla.org/pub/firefox/releases/138.0/mac/en-US/Firefox%20138.0.dmg", + sha256 = "41ef4466ac515b1aa81b827f1c44bfc442d9663e96070da7b3bc2ced30215fcb", build_file_content = """ load("@aspect_rules_js//js:defs.bzl", "js_library") package(default_visibility = ["//visibility:public"]) @@ -50,8 +50,8 @@ js_library( http_archive( name = "linux_beta_firefox", - url = "https://ftp.mozilla.org/pub/firefox/releases/138.0b9/linux-x86_64/en-US/firefox-138.0b9.tar.xz", - sha256 = "ca4f673d6abd3b2b4adc971097057664ad1a097ffd67b99257e08ea50ad5fed5", + url = "https://ftp.mozilla.org/pub/firefox/releases/139.0b1/linux-x86_64/en-US/firefox-139.0b1.tar.xz", + sha256 = "416ebfd795aa7c9d7d06893d7e5e1f9a806e58457ce4b9a2c12dcbb91e765df3", build_file_content = """ load("@aspect_rules_js//js:defs.bzl", "js_library") package(default_visibility = ["//visibility:public"]) @@ -72,8 +72,8 @@ js_library( dmg_archive( name = "mac_beta_firefox", - url = "https://ftp.mozilla.org/pub/firefox/releases/138.0b9/mac/en-US/Firefox%20138.0b9.dmg", - sha256 = "4e1749becc9427c908865af93cf245fc82895236eb8ad160798342a9d6714dde", + url = "https://ftp.mozilla.org/pub/firefox/releases/139.0b1/mac/en-US/Firefox%20139.0b1.dmg", + sha256 = "f2d57e27e636c0b571df98bbf9283d048c58d6adc9dc400d6176f8969eb8ad88", build_file_content = """ load("@aspect_rules_js//js:defs.bzl", "js_library") package(default_visibility = ["//visibility:public"]) @@ -199,8 +199,8 @@ js_library( http_archive( name = "linux_chrome", - url = "https://storage.googleapis.com/chrome-for-testing-public/135.0.7049.114/linux64/chrome-linux64.zip", - sha256 = "dd86dbac5d1a362bf9d46818e21e4afe2e8b1b419e0810573d298842eef88b82", + url = "https://storage.googleapis.com/chrome-for-testing-public/136.0.7103.49/linux64/chrome-linux64.zip", + sha256 = "cceec137ebf1d66cdee7966c05311cc7f200a0172d012925763c151bdca90edd", build_file_content = """ load("@aspect_rules_js//js:defs.bzl", "js_library") package(default_visibility = ["//visibility:public"]) @@ -221,8 +221,8 @@ js_library( http_archive( name = "mac_chrome", - url = "https://storage.googleapis.com/chrome-for-testing-public/135.0.7049.114/mac-x64/chrome-mac-x64.zip", - sha256 = "e7deb29034368567bab7f5b24a7c09d329ef2023f61e6ed349b714abb80292c2", + url = "https://storage.googleapis.com/chrome-for-testing-public/136.0.7103.49/mac-x64/chrome-mac-x64.zip", + sha256 = "461b547a323784a1ac315fbf387dcbe777199d809c54ea8a0f635010538aaa76", strip_prefix = "chrome-mac-x64", patch_cmds = [ "mv 'Google Chrome for Testing.app' Chrome.app", @@ -243,8 +243,8 @@ js_library( http_archive( name = "linux_chromedriver", - url = "https://storage.googleapis.com/chrome-for-testing-public/135.0.7049.114/linux64/chromedriver-linux64.zip", - sha256 = "28ef94323503f927f8fca4650d5acf6325e69829720900cc696c3d8179ce855c", + url = "https://storage.googleapis.com/chrome-for-testing-public/136.0.7103.49/linux64/chromedriver-linux64.zip", + sha256 = "d9b388d8dc609f89332662a824899a0ed702a26c8dfd824e9a24a4e5fa44a197", strip_prefix = "chromedriver-linux64", build_file_content = """ load("@aspect_rules_js//js:defs.bzl", "js_library") @@ -261,8 +261,8 @@ js_library( http_archive( name = "mac_chromedriver", - url = "https://storage.googleapis.com/chrome-for-testing-public/135.0.7049.114/mac-x64/chromedriver-mac-x64.zip", - sha256 = "a1da3421971762c4d6f258fb8e49dfd3aa855387f0b82d0333a59e972feb21d9", + url = "https://storage.googleapis.com/chrome-for-testing-public/136.0.7103.49/mac-x64/chromedriver-mac-x64.zip", + sha256 = "ba9ce908dc76c0ae6a3ac9976a0f820247e48fca2b0c9a183dfed901ed16f157", strip_prefix = "chromedriver-mac-x64", build_file_content = """ load("@aspect_rules_js//js:defs.bzl", "js_library") From 289562826b8e5dbe28ec5a770bb4f058165f038c Mon Sep 17 00:00:00 2001 From: Selenium CI Bot Date: Wed, 30 Apr 2025 21:09:52 +0000 Subject: [PATCH 2/7] update devtools versions --- Rakefile | 4 +- .../chromium/{v133 => v136}/BUILD.bazel | 0 .../{v133 => v136}/browser_protocol.pdl | 533 +++++++++++++++--- .../chromium/{v133 => v136}/js_protocol.pdl | 22 +- dotnet/selenium-dotnet-version.bzl | 2 +- .../src/webdriver/DevTools/DevToolsDomains.cs | 4 +- .../V133Domains.cs => v136/V136Domains.cs} | 22 +- .../V136JavaScript.cs} | 18 +- .../{v133/V133Log.cs => v136/V136Log.cs} | 14 +- .../V133Network.cs => v136/V136Network.cs} | 24 +- .../V133Target.cs => v136/V136Target.cs} | 14 +- .../StableChannelChromeDriver.cs | 2 +- .../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/{v133 => v136}/BUILD.bazel | 2 +- .../v136CdpInfo.java} | 8 +- .../v136Domains.java} | 26 +- .../v133Events.java => v136/v136Events.java} | 18 +- .../v136Javascript.java} | 16 +- .../{v133/v133Log.java => v136/v136Log.java} | 10 +- .../v136Network.java} | 20 +- .../v133Target.java => v136/v136Target.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 +- 34 files changed, 591 insertions(+), 222 deletions(-) rename common/devtools/chromium/{v133 => v136}/BUILD.bazel (100%) rename common/devtools/chromium/{v133 => v136}/browser_protocol.pdl (96%) rename common/devtools/chromium/{v133 => v136}/js_protocol.pdl (98%) rename dotnet/src/webdriver/DevTools/{v133/V133Domains.cs => v136/V136Domains.cs} (78%) rename dotnet/src/webdriver/DevTools/{v133/V133JavaScript.cs => v136/V136JavaScript.cs} (93%) rename dotnet/src/webdriver/DevTools/{v133/V133Log.cs => v136/V136Log.cs} (88%) rename dotnet/src/webdriver/DevTools/{v133/V133Network.cs => v136/V136Network.cs} (95%) rename dotnet/src/webdriver/DevTools/{v133/V133Target.cs => v136/V136Target.cs} (94%) rename java/src/org/openqa/selenium/devtools/{v133 => v136}/BUILD.bazel (98%) rename java/src/org/openqa/selenium/devtools/{v133/v133CdpInfo.java => v136/v136CdpInfo.java} (86%) rename java/src/org/openqa/selenium/devtools/{v133/v133Domains.java => v136/v136Domains.java} (77%) rename java/src/org/openqa/selenium/devtools/{v133/v133Events.java => v136/v136Events.java} (86%) rename java/src/org/openqa/selenium/devtools/{v133/v133Javascript.java => v136/v136Javascript.java} (84%) rename java/src/org/openqa/selenium/devtools/{v133/v133Log.java => v136/v136Log.java} (89%) rename java/src/org/openqa/selenium/devtools/{v133/v133Network.java => v136/v136Network.java} (92%) rename java/src/org/openqa/selenium/devtools/{v133/v133Target.java => v136/v136Target.java} (83%) diff --git a/Rakefile b/Rakefile index 90ef7a1e7c875..98ffa3169f25d 100644 --- a/Rakefile +++ b/Rakefile @@ -98,7 +98,7 @@ JAVA_RELEASE_TARGETS = %w[ //java/src/org/openqa/selenium/chromium:chromium.publish //java/src/org/openqa/selenium/devtools/v134:v134.publish //java/src/org/openqa/selenium/devtools/v135:v135.publish - //java/src/org/openqa/selenium/devtools/v133:v133.publish + //java/src/org/openqa/selenium/devtools/v136:v136.publish //java/src/org/openqa/selenium/edge:edge.publish //java/src/org/openqa/selenium/firefox:firefox.publish //java/src/org/openqa/selenium/grid/sessionmap/jdbc:jdbc.publish @@ -892,7 +892,7 @@ namespace :dotnet do sh 'docfx dotnet/docs/docfx.json' rescue StandardError case $CHILD_STATUS.exitstatus - when 133 + when 136 raise 'Ensure the dotnet/tools directory is added to your PATH environment variable (e.g., `~/.dotnet/tools`)' when 255 puts '.NET documentation build failed, likely because of DevTools namespacing. This is ok; continuing' diff --git a/common/devtools/chromium/v133/BUILD.bazel b/common/devtools/chromium/v136/BUILD.bazel similarity index 100% rename from common/devtools/chromium/v133/BUILD.bazel rename to common/devtools/chromium/v136/BUILD.bazel diff --git a/common/devtools/chromium/v133/browser_protocol.pdl b/common/devtools/chromium/v136/browser_protocol.pdl similarity index 96% rename from common/devtools/chromium/v133/browser_protocol.pdl rename to common/devtools/chromium/v136/browser_protocol.pdl index 3d5f44cda9100..3f5cefd0f077f 100644 --- a/common/devtools/chromium/v133/browser_protocol.pdl +++ b/common/devtools/chromium/v136/browser_protocol.pdl @@ -691,6 +691,7 @@ experimental domain Audits kInlineViolation kEvalViolation kURLViolation + kSRIViolation kTrustedTypesSinkViolation kTrustedTypesPolicyViolation kWasmEvalViolation @@ -800,6 +801,30 @@ experimental domain Audits WriteErrorTooLongIdField WriteErrorUnsupportedType + type SRIMessageSignatureError extends string + enum + MissingSignatureHeader + MissingSignatureInputHeader + InvalidSignatureHeader + InvalidSignatureInputHeader + SignatureHeaderValueIsNotByteSequence + SignatureHeaderValueIsParameterized + SignatureHeaderValueIsIncorrectLength + SignatureInputHeaderMissingLabel + SignatureInputHeaderValueNotInnerList + SignatureInputHeaderValueMissingComponents + SignatureInputHeaderInvalidComponentType + SignatureInputHeaderInvalidComponentName + SignatureInputHeaderInvalidHeaderComponentParameter + SignatureInputHeaderInvalidDerivedComponentParameter + SignatureInputHeaderKeyIdLength + SignatureInputHeaderInvalidParameter + SignatureInputHeaderMissingRequiredParameters + ValidationFailedSignatureExpired + ValidationFailedInvalidLength + ValidationFailedSignatureMismatch + ValidationFailedIntegrityMismatch + # Details for issues around "Attribution Reporting API" usage. # Explainer: https://github.com/WICG/attribution-reporting-api type AttributionReportingIssueDetails extends object @@ -831,6 +856,13 @@ experimental domain Audits SharedDictionaryError sharedDictionaryError AffectedRequest request + type SRIMessageSignatureIssueDetails extends object + properties + SRIMessageSignatureError error + string signatureBase + array of string integrityAssertions + AffectedRequest request + type GenericIssueErrorType extends string enum FormLabelForNameError @@ -949,6 +981,9 @@ experimental domain Audits InvalidFieldsSpecified RelyingPartyOriginIsOpaque TypeNotMatching + UiDismissedNoEmbargo + CorsError + SuppressedBySegmentationPlatform type FederatedAuthUserInfoRequestIssueDetails extends object properties @@ -984,6 +1019,18 @@ experimental domain Audits string failureMessage optional Network.RequestId requestId + type PartitioningBlobURLInfo extends string + enum + BlockedCrossPartitionFetching + EnforceNoopenerForNavigation + + type PartitioningBlobURLIssueDetails extends object + properties + # The BlobURL that failed to load. + string url + # Additional information about the Partitioning Blob URL issue. + PartitioningBlobURLInfo partitioningBlobURLInfo + type SelectElementAccessibilityIssueReason extends string enum DisallowedSelectChild @@ -992,14 +1039,13 @@ experimental domain Audits InteractiveContentOptionChild InteractiveContentLegendChild - # This isue warns about errors in the select element content model. + # This issue warns about errors in the select element content model. type SelectElementAccessibilityIssueDetails extends object properties DOM.BackendNodeId nodeId SelectElementAccessibilityIssueReason selectElementAccessibilityIssueReason boolean hasDisallowedAttributes - type StyleSheetLoadingIssueReason extends string enum LateImportRule @@ -1048,6 +1094,7 @@ experimental domain Audits CorsIssue AttributionReportingIssue QuirksModeIssue + PartitioningBlobURLIssue # Deprecated NavigatorUserAgentIssue GenericIssue @@ -1061,6 +1108,7 @@ experimental domain Audits PropertyRuleIssue SharedDictionaryIssue SelectElementAccessibilityIssue + SRIMessageSignatureIssue # 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 @@ -1077,6 +1125,7 @@ experimental domain Audits optional CorsIssueDetails corsIssueDetails optional AttributionReportingIssueDetails attributionReportingIssueDetails optional QuirksModeIssueDetails quirksModeIssueDetails + optional PartitioningBlobURLIssueDetails partitioningBlobURLIssueDetails deprecated optional NavigatorUserAgentIssueDetails navigatorUserAgentIssueDetails optional GenericIssueDetails genericIssueDetails optional DeprecationIssueDetails deprecationIssueDetails @@ -1089,6 +1138,7 @@ experimental domain Audits optional FederatedAuthUserInfoRequestIssueDetails federatedAuthUserInfoRequestIssueDetails optional SharedDictionaryIssueDetails sharedDictionaryIssueDetails optional SelectElementAccessibilityIssueDetails selectElementAccessibilityIssueDetails + optional SRIMessageSignatureIssueDetails sriMessageSignatureIssueDetails # A unique id for a DevTools inspector issue. Allows other entities (e.g. # exceptions, CDP message, console messages, etc.) to reference an issue. @@ -1171,6 +1221,13 @@ experimental domain Extensions returns # Extension id. string id + # Uninstalls an unpacked extension (others not supported) from the profile. + # Available if the client is connected using the --remote-debugging-pipe flag + # and the --enable-unsafe-extension-debugging. + command uninstall + parameters + # Extension id. + string id # Gets data from extension storage in the given `storageArea`. If `keys` is # specified, these are used to filter the result. command getStorageItems @@ -1428,6 +1485,7 @@ domain Browser idleDetection keyboardLock localFonts + localNetworkAccess midi midiSysex nfc @@ -1687,6 +1745,25 @@ domain Browser parameters string url + experimental type PrivacySandboxAPI extends string + enum + BiddingAndAuctionServices + TrustedKeyValue + + # Configures encryption keys used with a given privacy sandbox API to talk + # to a trusted coordinator. Since this is intended for test automation only, + # coordinatorOrigin must be a .test domain. No existing coordinator + # configuration for the origin may exist. + command addPrivacySandboxCoordinatorKeyConfig + parameters + PrivacySandboxAPI api + string coordinatorOrigin + string keyConfig + # BrowserContext to perform the action in. When omitted, default browser + # context is used. + optional BrowserContextID browserContextId + + # This domain exposes CSS read/write operations. All CSS objects (stylesheets, rules, and styles) # have an associated `id` used in subsequent operations on the related object. Each object type has # a specific `id` structure, and those are not interchangeable between objects of different kinds. @@ -2199,6 +2276,51 @@ experimental domain CSS # Associated style declaration. CSSStyle style + # CSS function argument representation. + type CSSFunctionParameter extends object + properties + # The parameter name. + string name + # The parameter type. + string type + + # CSS function conditional block representation. + type CSSFunctionConditionNode extends object + properties + # Media query for this conditional block. Only one type of condition should be set. + optional CSSMedia media + # Container query for this conditional block. Only one type of condition should be set. + optional CSSContainerQuery containerQueries + # @supports CSS at-rule condition. Only one type of condition should be set. + optional CSSSupports supports + # Block body. + array of CSSFunctionNode children + # The condition text. + string conditionText + + # Section of the body of a CSS function rule. + type CSSFunctionNode extends object + properties + # A conditional block. If set, style should not be set. + optional CSSFunctionConditionNode condition + # Values set by this node. If set, condition should not be set. + optional CSSStyle style + + # CSS function at-rule representation. + type CSSFunctionRule extends object + properties + # Name of the function. + Value name + # The css style sheet identifier (absent for user agent stylesheet and user-specified + # stylesheet rules) this rule came from. + optional StyleSheetId styleSheetId + # Parent stylesheet's origin. + StyleSheetOrigin origin + # List of parameters. + array of CSSFunctionParameter parameters + # Function body. + array of CSSFunctionNode children + # CSS keyframe rule representation. type CSSKeyframeRule extends object properties @@ -2253,6 +2375,11 @@ experimental domain CSS parameters # Identifier of the frame where "via-inspector" stylesheet should be created. Page.FrameId frameId + # If true, creates a new stylesheet for every call. If false, + # returns a stylesheet previously created by a call with force=false + # for the frame's document if it exists or creates a new stylesheet + # (default: false). + optional boolean force returns # Identifier of the created "via-inspector" stylesheet. StyleSheetId styleSheetId @@ -2391,6 +2518,8 @@ experimental domain CSS optional CSSFontPaletteValuesRule cssFontPaletteValuesRule # Id of the first parent element that does not have display: contents. experimental optional DOM.NodeId parentLayoutNodeId + # A list of CSS at-function rules referenced by styles of this node. + experimental optional array of CSSFunctionRule cssFunctionRules # Returns all media queries parsed by the rendering engine. command getMediaQueries @@ -3361,6 +3490,8 @@ domain DOM # Get the popover target for a given element. In this case, this given # element can only be an HTMLFormControlElement (,