From 270abc719921ae6a98b46b1f8fe0c6cf3a9f2451 Mon Sep 17 00:00:00 2001 From: Selenium CI Bot Date: Wed, 19 Jun 2024 15:04:24 +0000 Subject: [PATCH 1/6] Update pinned browser versions --- common/repositories.bzl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/repositories.bzl b/common/repositories.bzl index fbcad60e7b105..6e04207638398 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/127.0/linux-x86_64/en-US/firefox-127.0.tar.bz2", - sha256 = "0d1a523f2348cb3068d792ca7cb31b209d0c6c8e4b95bcd708f4c096a88d0ae9", + url = "https://ftp.mozilla.org/pub/firefox/releases/127.0.1/linux-x86_64/en-US/firefox-127.0.1.tar.bz2", + sha256 = "57564e6219f8f79418ba49d1e7a6edf44f8e253f777d0ae7de7dbff200c3d5f4", 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/127.0/mac/en-US/Firefox%20127.0.dmg", - sha256 = "3c30cbc8ae2ad0dc44ac32a266c871bd0866ca2c2876b464c86193ae5ffe6e6d", + url = "https://ftp.mozilla.org/pub/firefox/releases/127.0.1/mac/en-US/Firefox%20127.0.1.dmg", + sha256 = "b26e36efe95b2cb0c6c01b726587183c6e6e324fd51b5a0b95c1744bf1a54c3d", build_file_content = """ load("@aspect_rules_js//js:defs.bzl", "js_library") package(default_visibility = ["//visibility:public"]) From 81f7131fd0d5628121ab0fecf275114972bb5262 Mon Sep 17 00:00:00 2001 From: Selenium CI Bot Date: Wed, 19 Jun 2024 15:04:47 +0000 Subject: [PATCH 2/6] Update supported versions for Chrome DevTools --- Rakefile | 2 +- .../chromium/{v123 => v126}/BUILD.bazel | 0 .../{v123 => v126}/browser_protocol.pdl | 446 ++++++++++++++++-- .../chromium/{v123 => v126}/js_protocol.pdl | 0 dotnet/selenium-dotnet-version.bzl | 2 +- .../src/webdriver/DevTools/DevToolsDomains.cs | 2 +- .../V123Domains.cs => v126/V126Domains.cs} | 22 +- .../V126JavaScript.cs} | 16 +- .../{v123/V123Log.cs => v126/V126Log.cs} | 14 +- .../V123Network.cs => v126/V126Network.cs} | 24 +- .../V123Target.cs => v126/V126Target.cs} | 14 +- dotnet/src/webdriver/WebDriver.csproj | 2 +- .../StableChannelChromeDriver.cs | 2 +- .../common/DevTools/DevToolsConsoleTest.cs | 4 +- .../test/common/DevTools/DevToolsLogTest.cs | 2 +- .../common/DevTools/DevToolsNetworkTest.cs | 4 +- .../DevTools/DevToolsPerformanceTest.cs | 4 +- .../common/DevTools/DevToolsProfilerTest.cs | 4 +- .../common/DevTools/DevToolsSecurityTest.cs | 4 +- .../test/common/DevTools/DevToolsTabsTest.cs | 4 +- .../common/DevTools/DevToolsTargetTest.cs | 6 +- .../devtools/{v123 => v126}/BUILD.bazel | 2 +- .../v126CdpInfo.java} | 8 +- .../v126Domains.java} | 26 +- .../v123Events.java => v126/v126Events.java} | 18 +- .../v126Javascript.java} | 14 +- .../{v123/v123Log.java => v126/v126Log.java} | 10 +- .../v126Network.java} | 20 +- .../v123Target.java => v126/v126Target.java} | 24 +- .../org/openqa/selenium/devtools/versions.bzl | 2 +- .../node/selenium-webdriver/BUILD.bazel | 2 +- py/BUILD.bazel | 2 +- rb/Gemfile.lock | 8 +- rb/lib/selenium/devtools/BUILD.bazel | 2 +- rb/lib/selenium/devtools/version.rb | 2 +- 35 files changed, 532 insertions(+), 186 deletions(-) rename common/devtools/chromium/{v123 => v126}/BUILD.bazel (100%) rename common/devtools/chromium/{v123 => v126}/browser_protocol.pdl (96%) rename common/devtools/chromium/{v123 => v126}/js_protocol.pdl (100%) rename dotnet/src/webdriver/DevTools/{v123/V123Domains.cs => v126/V126Domains.cs} (78%) rename dotnet/src/webdriver/DevTools/{v123/V123JavaScript.cs => v126/V126JavaScript.cs} (94%) rename dotnet/src/webdriver/DevTools/{v123/V123Log.cs => v126/V126Log.cs} (88%) rename dotnet/src/webdriver/DevTools/{v123/V123Network.cs => v126/V126Network.cs} (95%) rename dotnet/src/webdriver/DevTools/{v123/V123Target.cs => v126/V126Target.cs} (94%) rename java/src/org/openqa/selenium/devtools/{v123 => v126}/BUILD.bazel (98%) rename java/src/org/openqa/selenium/devtools/{v123/v123CdpInfo.java => v126/v126CdpInfo.java} (86%) rename java/src/org/openqa/selenium/devtools/{v123/v123Domains.java => v126/v126Domains.java} (77%) rename java/src/org/openqa/selenium/devtools/{v123/v123Events.java => v126/v126Events.java} (86%) rename java/src/org/openqa/selenium/devtools/{v123/v123Javascript.java => v126/v126Javascript.java} (85%) rename java/src/org/openqa/selenium/devtools/{v123/v123Log.java => v126/v126Log.java} (89%) rename java/src/org/openqa/selenium/devtools/{v123/v123Network.java => v126/v126Network.java} (92%) rename java/src/org/openqa/selenium/devtools/{v123/v123Target.java => v126/v126Target.java} (83%) diff --git a/Rakefile b/Rakefile index 7749ff48019a0..3ec1dcdc6e429 100644 --- a/Rakefile +++ b/Rakefile @@ -98,7 +98,7 @@ 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/v125:v125.publish - //java/src/org/openqa/selenium/devtools/v123:v123.publish + //java/src/org/openqa/selenium/devtools/v126:v126.publish //java/src/org/openqa/selenium/devtools/v124:v124.publish //java/src/org/openqa/selenium/devtools/v85:v85.publish //java/src/org/openqa/selenium/edge:edge.publish diff --git a/common/devtools/chromium/v123/BUILD.bazel b/common/devtools/chromium/v126/BUILD.bazel similarity index 100% rename from common/devtools/chromium/v123/BUILD.bazel rename to common/devtools/chromium/v126/BUILD.bazel diff --git a/common/devtools/chromium/v123/browser_protocol.pdl b/common/devtools/chromium/v126/browser_protocol.pdl similarity index 96% rename from common/devtools/chromium/v123/browser_protocol.pdl rename to common/devtools/chromium/v126/browser_protocol.pdl index 5b79452137dbf..31028c8b42049 100644 --- a/common/devtools/chromium/v123/browser_protocol.pdl +++ b/common/devtools/chromium/v126/browser_protocol.pdl @@ -475,6 +475,12 @@ experimental domain Animation # Animation that was started. Animation animation + # Event for animation that has been updated. + event animationUpdated + parameters + # Animation that was updated. + Animation animation + # Audits domain allows investigation of page violations and possible improvements. experimental domain Audits depends on Network @@ -729,6 +735,37 @@ experimental domain Audits WebAndOsHeaders NoWebOrOsSupport NavigationRegistrationWithoutTransientUserActivation + InvalidInfoHeader + NoRegisterSourceHeader + NoRegisterTriggerHeader + NoRegisterOsSourceHeader + NoRegisterOsTriggerHeader + + type SharedDictionaryError extends string + enum + UseErrorCrossOriginNoCorsRequest + UseErrorDictionaryLoadFailure + UseErrorMatchingDictionaryNotUsed + UseErrorUnexpectedContentDictionaryHeader + WriteErrorCossOriginNoCorsRequest + WriteErrorDisallowedBySettings + WriteErrorExpiredResponse + WriteErrorFeatureDisabled + WriteErrorInsufficientResources + WriteErrorInvalidMatchField + WriteErrorInvalidStructuredHeader + WriteErrorNavigationRequest + WriteErrorNoMatchField + WriteErrorNonListMatchDestField + WriteErrorNonSecureContext + WriteErrorNonStringIdField + WriteErrorNonStringInMatchDestList + WriteErrorNonStringMatchField + WriteErrorNonTokenTypeField + WriteErrorRequestAborted + WriteErrorShuttingDown + WriteErrorTooLongIdField + WriteErrorUnsupportedType # Details for issues around "Attribution Reporting API" usage. # Explainer: https://github.com/WICG/attribution-reporting-api @@ -756,6 +793,11 @@ experimental domain Audits string url optional SourceCodeLocation location + type SharedDictionaryIssueDetails extends object + properties + SharedDictionaryError sharedDictionaryError + AffectedRequest request + type GenericIssueErrorType extends string enum CrossOriginPortalPostMessageError @@ -807,6 +849,9 @@ experimental domain Audits type CookieDeprecationMetadataIssueDetails extends object properties array of string allowedSites + number optOutPercentage + boolean isOptOutTopLevel + CookieOperation operation type ClientHintIssueReason extends string enum @@ -865,6 +910,8 @@ experimental domain Audits SilentMediationFailure ThirdPartyCookiesBlocked NotSignedInWithIdp + MissingTransientUserActivation + ReplacedByButtonMode type FederatedAuthUserInfoRequestIssueDetails extends object properties @@ -959,6 +1006,7 @@ experimental domain Audits StylesheetLoadingIssue FederatedAuthUserInfoRequestIssue PropertyRuleIssue + SharedDictionaryIssue # 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 @@ -985,6 +1033,7 @@ experimental domain Audits optional StylesheetLoadingIssueDetails stylesheetLoadingIssueDetails optional PropertyRuleIssueDetails propertyRuleIssueDetails optional FederatedAuthUserInfoRequestIssueDetails federatedAuthUserInfoRequestIssueDetails + optional SharedDictionaryIssueDetails sharedDictionaryIssueDetails # A unique id for a DevTools inspector issue. Allows other entities (e.g. # exceptions, CDP message, console messages, etc.) to reference an issue. @@ -1046,6 +1095,21 @@ experimental domain Audits parameters InspectorIssue issue +# Defines commands and events for browser extensions. Available if the client +# is connected using the --remote-debugging-pipe flag and +# the --enable-unsafe-extension-debugging flag is set. +experimental domain Extensions + # Installs an unpacked extension from the filesystem similar to + # --load-extension CLI flags. Returns extension ID once the extension + # has been installed. + command loadUnpacked + parameters + # Absolute file path. + string path + returns + # Extension id. + string id + # Defines commands and events for Autofill. experimental domain Autofill type CreditCard extends object @@ -1939,12 +2003,25 @@ experimental domain CSS CSSStyle style # CSS position-fallback rule representation. - type CSSPositionFallbackRule extends object + deprecated type CSSPositionFallbackRule extends object properties Value name # List of keyframes. array of CSSTryRule tryRules + # CSS @position-try rule representation. + type CSSPositionTryRule extends object + properties + # The prelude dashed-ident name + 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 + # Associated style declaration. + CSSStyle style + # CSS keyframes rule representation. type CSSKeyframesRule extends object properties @@ -2118,7 +2195,9 @@ experimental domain CSS # A list of CSS keyframed animations matching this node. optional array of CSSKeyframesRule cssKeyframesRules # A list of CSS position fallbacks matching this node. - optional array of CSSPositionFallbackRule cssPositionFallbackRules + deprecated optional array of CSSPositionFallbackRule cssPositionFallbackRules + # A list of CSS @position-try rules matching this node, based on the position-try-options property. + optional array of CSSPositionTryRule cssPositionTryRules # A list of CSS at-property rules matching this node. optional array of CSSPropertyRule cssPropertyRules # A list of CSS property registrations matching this node. @@ -2160,6 +2239,15 @@ experimental domain CSS returns CSSLayerData rootLayer + # Given a CSS selector text and a style sheet ID, getLocationForSelector + # returns an array of locations of the CSS selector in the style sheet. + experimental command getLocationForSelector + parameters + StyleSheetId styleSheetId + string selectorText + returns + array of SourceRange ranges + # Starts tracking the given computed styles for updates. The specified array of properties # replaces the one previously specified. Pass empty array to disable tracking. # Use takeComputedStyleUpdates to retrieve the list of nodes that had properties modified. @@ -2541,11 +2629,14 @@ domain DOM marker backdrop selection + search-text target-text spelling-error grammar-error highlight first-line-inherited + scroll-marker + scroll-markers scrollbar scrollbar-thumb scrollbar-button @@ -3045,6 +3136,20 @@ domain DOM # NodeIds of top layer elements array of NodeId nodeIds + # Returns the NodeId of the matched element according to certain relations. + experimental command getElementByRelation + parameters + # Id of the node from which to query the relation. + NodeId nodeId + # Type of relation to get. + enum relation + # Get the popover target for a given element. In this case, this given + # element can only be an HTMLFormControlElement (,