Skip to content

gh-114452: Preserve spaces in synthesized browser paths - #159853

Open
limadog9 wants to merge 1 commit into
python:mainfrom
limadog9:gh-114452-webbrowser-space-path
Open

limadog9 wants to merge 1 commit into
python:mainfrom
limadog9:gh-114452-webbrowser-space-path

Conversation

@limadog9

@limadog9 limadog9 commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Preserve the complete executable path when synthesizing a registered browser controller. Splitting the path on whitespace made a browser installed in a directory containing spaces fail executable lookup.

Add a regression that verifies the full path reaches executable lookup, and remove the skip that hid this problem when the Python executable itself had spaces in its path. Mock executable lookup so the regression also runs on mobile platforms that restrict executables.

Fixes #114452.

Validation:

  • The new regression raises webbrowser.Error before the fix.
  • Full webbrowser suite on a free-threaded debug build: 65 tests, 19 skipped.
  • Ruff, NEWS lint, and patchcheck.

@limadog9
limadog9 force-pushed the gh-114452-webbrowser-space-path branch from 11def8b to bdf5db5 Compare October 20, 2026 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

webbrowser._synthesize assumes no space in path

1 participant