I have Chrome configured as my default browser, on Mountain Lion.
At the end of my Python 2.7.4 program I have the following:
import webbrowser webbrowser.open('http://example.com')
Sometimes instead of opening the tab as the documentation suggests will happen this command will focus Google Chrome, without opening the URL in a new tab.
I'm not even sure where to start debugging this (there are no errors on the Python side, at least). I'd appreciate some ideas about where to start looking.