Repository navigation
fix(driver): strip BiDi webSocketUrl capability before forwarding (fix #15415) - #15605
Open
tenderdeve wants to merge 1 commit into
Open
tenderdeve wants to merge 1 commit into
tenderdeve wants to merge 1 commit into
Conversation
Contributor
Package Changes Through 85fa984There are 1 changes which include tauri-driver with patch Planned Package VersionsThe following package releases are the planned based on the context of changes in this pull request.
Add another change file through the GitHub UI by following this link. Read about change files or the docs at github.com/jbolda/covector |
…tauri-apps#15415) WebdriverIO 9+ defaults to WebDriver BiDi and auto-injects `webSocketUrl: true` into the requested capabilities. tauri-driver forwards capabilities verbatim to the native driver but does not proxy the BiDi websocket, and the WebKitWebDriver bundled with pre-2.46 WebKitGTK (current Ubuntu LTS) rejects sessions that request BiDi, so session creation failed for wdio 9+ users. Strip `webSocketUrl` from `alwaysMatch` and every `firstMatch` entry in `map_capabilities`. BiDi is additive, so clients fall back to classic WebDriver.
tenderdeve
force-pushed
the
fix/15415-strip-bidi-capabilities
branch
from
July 9, 2026 07:29
85fa984 to
de8ae1c
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #15415.
WebdriverIO 9+ defaults to WebDriver BiDi and auto-injects
webSocketUrl: trueintoalwaysMatchto negotiate it.tauri-driverforwards capabilities verbatim to the native driver but does not proxy the BiDi websocket, and theWebKitWebDriverbundled with pre-2.46 WebKitGTK (current Ubuntu LTS / noble) rejects sessions that request BiDi — so session creation fails for every wdio 9+ user unless they manually setwdio:enforceWebDriverClassic.Since tauri-driver has no BiDi support to forward to in the first place,
webSocketUrlcan never be honored. Strip it fromalwaysMatchand everyfirstMatchentry inmap_capabilitiesso the inner driver gets a capability set it accepts. BiDi is additive, so clients fall back to classic WebDriver seamlessly — no regression for WebKit ≥2.46.Added a unit test covering the strip on both
alwaysMatchandfirstMatch.Note:
tauri-driver'sservermodule is#[cfg(any(target_os = "linux", windows))], so the test does not build on a macOS host; verified withcargo check/clippy -p tauri-driver --tests --target x86_64-unknown-linux-gnu(clean) and it runs under CI on Linux/Windows.