Opening a new unfocused tab in Chrome with webbrowser.open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 36k
- PR merge metrics
- PR metrics pending
Description
OS → Microsoft Windows 11
Chrome Version → 101.0.4951.54 (official version) 64 bits
I have Google website open and I want to open the Stackoverflow website in a new tab but the screen keeps showing the Google website.
All possible combinations I've tried to use but the page still opens and pulls the focus to it, my attempts were:
sof = 'https://stackoverflow.com'
webbrowser.open(sof, new=0, autoraise=False)
webbrowser.open(sof, new=2, autoraise=False)
webbrowser.open(sof, new=0, autoraise=True)
webbrowser.open(sof, new=2, autoraise=True)
All indications of use for such a function, lead me to the webbrowser + autoraise, I believe there is a problem.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the webbrowser.open entry point and reproduce the reported behavior on Windows 11 with Chrome, using the listed new and autoraise combinations. Determine whether the documented options are expected to control tab focus in this environment; completion requires either a confirmed fix with regression coverage or a clarified issue documenting the platform limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100