Skip to content

fix Windows WebView2 smoke on Edge 150 - #7

Merged
feihongxu0824 merged 7 commits into
mainfrom
codex/fix-windows-webview2-smoke
Aug 7, 2026
Merged

feihongxu0824 merged 7 commits into
mainfrom
codex/fix-windows-webview2-smoke

Conversation

@feihongxu0824

@feihongxu0824 feihongxu0824 commented Aug 6, 2026 •

Copy link
Copy Markdown
Collaborator

What changed

  • Replace the Windows installed-app UI smoke's tauri-driver/EdgeDriver transport with Playwright over WebView2 CDP.
  • Keep the existing tauri-driver WebDriver smoke on Linux.
  • Make the Windows desktop shell honor the official WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS variable through Tauri's window configuration.
  • Enable a dynamic CDP port only in the UI smoke child process and discover it through WebView2's DevToolsActivePort file.
  • Terminate the full installed-app process tree after Windows smokes so no WebView2 child keeps the profile locked.
  • Remove the now-unneeded EdgeDriver installation from the Windows release job.

Why

The v0.1.13 release failed only on the Windows installed desktop UI smoke. Repeated runs failed before any test ran with session not created: DevToolsActivePort file doesn't exist on WebView2/EdgeDriver 150.0.4078.105. Tauri's official WebDriver example currently reproduces the same Edge 150 failure, while the previous Zvec Studio release passed on Edge 149.

EdgeDriver 150 never established a usable WebView2 automation endpoint. Direct environment-variable and registry attempts also did not work because wry explicitly supplies its own WebView2 browser arguments. The desktop shell now merges the official environment variable into Tauri's window configuration, allowing the CI-only child process to open a dynamic CDP endpoint that Playwright can attach to.

Impact

Normal application and release behavior is unchanged: the remote-debugging argument is only present when a caller explicitly supplies the official WebView2 environment variable. The Windows smoke still verifies sidecar startup, collection creation, navigation, and all collection detail tabs.

Validation

  • cargo check --manifest-path apps/desktop/src-tauri/Cargo.toml
  • cargo test --manifest-path apps/desktop/src-tauri/Cargo.toml --lib (6 passed)
  • node --check apps/desktop/tests/installed-app.windows-smoke.mjs
  • release workflow YAML parse
  • Prettier and git diff --check

The definitive validation is the Windows release smoke run linked in the PR discussion.

Signed-off-by: xufeihong.xfh <xufeihong.xfh@alibaba-inc.com>
Signed-off-by: xufeihong.xfh <xufeihong.xfh@alibaba-inc.com>
Signed-off-by: xufeihong.xfh <xufeihong.xfh@alibaba-inc.com>
Signed-off-by: xufeihong.xfh <xufeihong.xfh@alibaba-inc.com>
Signed-off-by: xufeihong.xfh <xufeihong.xfh@alibaba-inc.com>
Signed-off-by: xufeihong.xfh <xufeihong.xfh@alibaba-inc.com>
Signed-off-by: xufeihong.xfh <xufeihong.xfh@alibaba-inc.com>
@feihongxu0824
feihongxu0824 marked this pull request as ready for review August 7, 2026 05:41
@feihongxu0824
feihongxu0824 merged commit 3fe7ac9 into main Aug 7, 2026
21 checks passed
@feihongxu0824
feihongxu0824 deleted the codex/fix-windows-webview2-smoke branch August 7, 2026 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant