Skip to content

Python 3.14 webbrowser regression when launching vscode:// URI on macOS #149454

@skissane-medallia

Description

@skissane-medallia

Bug report

Bug description:

In Python 3.13.13 on macOS 26.3.1, I run __import__("webbrowser").open("vscode://"): it opens Microsoft VS Code
Same machine, in Python 3.14.2, same code: opens Chrome instead

I observe the same behaviour with Python 3.15.0a8

One line test case (using uv):

uv run --no-project --python=3.14 python3 -c '__import__("webbrowser").open("vscode://")'

In my actual use case, the URI is more complex, something like vscode://vscode-remote/ssh-remote+MYDEVBOX.example.com/workspaces/MYPROJECT.code-workspace – but vscode:// is enough to reproduce it

CPython versions tested on:

3.14

Operating systems tested on:

macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions