-
-
Notifications
You must be signed in to change notification settings - Fork 34.6k
Python 3.14 webbrowser regression when launching vscode:// URI on macOS #149454
Copy link
Copy link
Open
Labels
3.14bugs and security fixesbugs and security fixes3.15pre-release feature fixes, bugs and security fixespre-release feature fixes, bugs and security fixespendingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is providedstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Metadata
Metadata
Assignees
Labels
3.14bugs and security fixesbugs and security fixes3.15pre-release feature fixes, bugs and security fixespre-release feature fixes, bugs and security fixespendingThe issue will be closed if no feedback is providedThe issue will be closed if no feedback is providedstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Bug report
Bug description:
In Python 3.13.13 on macOS 26.3.1, I run
__import__("webbrowser").open("vscode://"): it opens Microsoft VS CodeSame 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):In my actual use case, the URI is more complex, something like
vscode://vscode-remote/ssh-remote+MYDEVBOX.example.com/workspaces/MYPROJECT.code-workspace– butvscode://is enough to reproduce itCPython versions tested on:
3.14
Operating systems tested on:
macOS