Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Removed


## [0.14.3] - 2025-09-28
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add changes under the [Unreleased] section, my release script will create a section for the new release automatically.


### Fixed

- Fix WebRTC IP Leaks @ethcipher

### Added

- Add `disable_webRTC` and `disable_webGL` agrs to `Config` class @ethcipher

## [0.14.2] - 2025-09-09

### Fixed
Expand Down
12 changes: 12 additions & 0 deletions zendriver/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ def __init__(
browser_connection_timeout: float = 0.25,
browser_connection_max_tries: int = 10,
user_agent: Optional[str] = None,
disable_webRTC: Optional[bool] = True,
disable_webGL: Optional[bool] = False,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

super nit: let's call these disable_webrtc and disable_webgl

**kwargs: Any,
):
"""
Expand Down Expand Up @@ -106,6 +108,8 @@ def __init__(
self.host = host
self.port = port
self.expert = expert
self.disable_webRTC = disable_webRTC
self.disable_webGL = disable_webGL
self._extensions: list[PathLike] = []

# when using posix-ish operating system and running as root
Expand Down Expand Up @@ -226,6 +230,14 @@ def __call__(self) -> list[str]:
args.append("--remote-debugging-host=%s" % self.host)
if self.port:
args.append("--remote-debugging-port=%s" % self.port)
if self.disable_webRTC:
args += [
"--webrtc-ip-handling-policy=disable_non_proxied_udp",
"--force-webrtc-ip-handling-policy",
]
if self.disable_webGL:
args += ["--disable-webgl", "--disable-webgl2"]

return args

def add_argument(self, arg: str) -> None:
Expand Down