Skip to content

Commit 579723d

Browse files
authored
Merge branch 'trunk' into local-distributor
2 parents c7e2984 + 0a931d7 commit 579723d

File tree

13 files changed

+34
-115
lines changed

13 files changed

+34
-115
lines changed

common/repositories.bzl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ js_library(
5050

5151
http_archive(
5252
name = "linux_beta_firefox",
53-
url = "https://ftp.mozilla.org/pub/firefox/releases/142.0b8/linux-x86_64/en-US/firefox-142.0b8.tar.xz",
54-
sha256 = "52c7c24dcc1258c9cd43c7b070def0a93bae58d2f5d077d11a7979307857e5c2",
53+
url = "https://ftp.mozilla.org/pub/firefox/releases/142.0b9/linux-x86_64/en-US/firefox-142.0b9.tar.xz",
54+
sha256 = "0e230f54a1d933df55e0d730c7d774437e60b5fdcbd74401f5da69bce184c30b",
5555
build_file_content = """
5656
load("@aspect_rules_js//js:defs.bzl", "js_library")
5757
package(default_visibility = ["//visibility:public"])
@@ -72,8 +72,8 @@ js_library(
7272

7373
dmg_archive(
7474
name = "mac_beta_firefox",
75-
url = "https://ftp.mozilla.org/pub/firefox/releases/142.0b8/mac/en-US/Firefox%20142.0b8.dmg",
76-
sha256 = "74c20a61fcc05fd69427f370a6a97ab660615299ef254d4cfaa617ec095dba98",
75+
url = "https://ftp.mozilla.org/pub/firefox/releases/142.0b9/mac/en-US/Firefox%20142.0b9.dmg",
76+
sha256 = "529509a53278d8cbd482fa8ef95ac243b33c6cc4acc7924c15f6ce3f59c64bbf",
7777
build_file_content = """
7878
load("@aspect_rules_js//js:defs.bzl", "js_library")
7979
package(default_visibility = ["//visibility:public"])
@@ -165,8 +165,8 @@ js_library(
165165

166166
http_archive(
167167
name = "linux_edgedriver",
168-
url = "https://msedgedriver.microsoft.com/138.0.3351.121/edgedriver_linux64.zip",
169-
sha256 = "1a0bed812b1b84f1093fa1e759cae2a210481620cd9ea3cb91dc2a60e0b21e4d",
168+
url = "https://msedgedriver.microsoft.com/139.0.3405.86/edgedriver_linux64.zip",
169+
sha256 = "49ce29de50f9ac418a3a2416708a5563215b8412b27d3e505f3c859fc6ffba12",
170170
build_file_content = """
171171
load("@aspect_rules_js//js:defs.bzl", "js_library")
172172
package(default_visibility = ["//visibility:public"])
@@ -182,8 +182,8 @@ js_library(
182182

183183
http_archive(
184184
name = "mac_edgedriver",
185-
url = "https://msedgedriver.microsoft.com/138.0.3351.121/edgedriver_mac64.zip",
186-
sha256 = "96b648865de254ae5db7008676340b16476e39b0b90c2da71964c14cb53a0195",
185+
url = "https://msedgedriver.microsoft.com/139.0.3405.86/edgedriver_mac64.zip",
186+
sha256 = "b6c8244dfb7b8a223d3ac8fd569533f0a307eadaca2b8cbc884ce7f69294682e",
187187
build_file_content = """
188188
load("@aspect_rules_js//js:defs.bzl", "js_library")
189189
package(default_visibility = ["//visibility:public"])

py/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ py_wheel(
327327
python_requires = ">=3.9",
328328
python_tag = "py3",
329329
requires = [
330-
"urllib3[socks]~=2.5.0",
330+
"urllib3[socks]>=2.5.0,<3.0",
331331
"trio~=0.30.0",
332332
"trio-websocket~=0.12.2",
333333
"certifi>=2025.6.15",

py/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ classifiers = [
2626
"Programming Language :: Python :: 3.13",
2727
]
2828
dependencies = [
29-
"urllib3[socks]~=2.5.0",
29+
"urllib3[socks]>=2.5.0,<3.0",
3030
"trio~=0.30.0",
3131
"trio-websocket~=0.12.2",
3232
"certifi>=2025.6.15",

py/selenium/webdriver/common/bidi/session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
from typing import Dict, Optional
18+
from typing import Optional
1919

2020
from selenium.webdriver.common.bidi.common import command_builder
2121

@@ -77,7 +77,7 @@ def __init__(
7777
self.file = file
7878
self.prompt = prompt
7979

80-
def to_dict(self) -> Dict[str, str]:
80+
def to_dict(self) -> dict[str, str]:
8181
"""Convert the UserPromptHandler to a dictionary for BiDi protocol.
8282
8383
Returns:

rb/Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ PATH
77
base64 (~> 0.2)
88
logger (~> 1.4)
99
rexml (~> 3.2, >= 3.2.5)
10-
rubyzip (>= 1.2.2, < 3.0)
10+
rubyzip (>= 1.2.2, < 4.0)
1111
websocket (~> 1.0)
1212

1313
GEM
@@ -147,7 +147,7 @@ GEM
147147
lint_roller (~> 1.1)
148148
rubocop (~> 1.72, >= 1.72.1)
149149
ruby-progressbar (1.13.0)
150-
rubyzip (2.4.1)
150+
rubyzip (3.0.0)
151151
securerandom (0.4.1)
152152
steep (1.5.3)
153153
activesupport (>= 5.1)

rb/lib/selenium/webdriver/common/driver_extensions/has_file_downloads.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,13 @@ def download_file(file_name, target_directory)
3939

4040
begin
4141
Zip::File.open("#{file_name}.zip") do |zip|
42-
zip.each { |entry| zip.extract(entry, "#{target_directory}#{file_name}") }
42+
zip.each do |entry|
43+
if Zipper::RUBYZIP_V3
44+
zip.extract(entry, file_name, destination_directory: target_directory)
45+
else
46+
zip.extract(entry, "#{target_directory}#{file_name}")
47+
end
48+
end
4349
end
4450
ensure
4551
FileUtils.rm_f("#{file_name}.zip")

rb/lib/selenium/webdriver/common/zipper.rb

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
# under the License.
1919

2020
require 'zip'
21+
require 'zip/version' # Not required automatically
2122
require 'tempfile'
2223
require 'find'
2324
require 'base64'
@@ -30,6 +31,7 @@ module WebDriver
3031

3132
module Zipper
3233
EXTENSIONS = %w[.zip .xpi].freeze
34+
RUBYZIP_V3 = Zip::VERSION >= '3.0.0'
3335

3436
class << self
3537
def unzip(path)
@@ -42,7 +44,11 @@ def unzip(path)
4244
dirname = File.dirname(to)
4345

4446
FileUtils.mkdir_p dirname
45-
zip.extract(entry, to)
47+
if RUBYZIP_V3
48+
zip.extract(entry, entry.name, destination_directory: destination)
49+
else
50+
zip.extract(entry, to)
51+
end
4652
end
4753
end
4854

@@ -75,7 +81,11 @@ def with_tmp_zip(&blk)
7581
# Don't use Tempfile since it lacks rb_file_s_rename permission on Windows.
7682
Dir.mktmpdir do |tmp_dir|
7783
zip_path = File.join(tmp_dir, 'webdriver-zip')
78-
Zip::File.open(zip_path, Zip::File::CREATE, &blk)
84+
if RUBYZIP_V3
85+
Zip::File.open(zip_path, create: true, &blk)
86+
else
87+
Zip::File.open(zip_path, Zip::File::CREATE, &blk)
88+
end
7989
end
8090
end
8191

rb/selenium-webdriver.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Gem::Specification.new do |s|
5252
s.add_dependency 'base64', ['~> 0.2']
5353
s.add_dependency 'logger', ['~> 1.4']
5454
s.add_dependency 'rexml', ['~> 3.2', '>= 3.2.5']
55-
s.add_dependency 'rubyzip', ['>= 1.2.2', '< 3.0']
55+
s.add_dependency 'rubyzip', ['>= 1.2.2', '< 4.0']
5656
s.add_dependency 'websocket', ['~> 1.0']
5757

5858
s.add_development_dependency 'git', ['~> 1.19']

rb/sig/interfaces/local_storage.rbs

Lines changed: 0 additions & 3 deletions
This file was deleted.

rb/sig/lib/selenium/webdriver/common/html5/local_storage.rbs

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)