New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 728071 link

Starred by 5 users

Issue metadata

Status: Fixed
Owner: ----
Closed: Dec 20
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

"git cl web" on Mac OS X does not open in default browser

Project Member Reported by sdefresne@chromium.org, May 31 2017

Issue description

After installing the latest update of Mac OS X (now on 10.12.5), "git cl web" stopped opening CL in the default browser but instead display some error messages on the command line and then open it in Safari (where I cannot log in as it does not support U2F).

Error displayed on the command-line:
$ git cl web
0:63: execution error: "https://chromium-review.googlesource.com/519263" doesn’t understand the “open location” message. (-1708)
70:78: execution error: Can’t get application "firefox". (-1728)

This looks like the webbrowser.open method of python no longer works.
 
BTW, for me it means that the CL is open in Safari. Other have reported it opens with Firefox. My default browser is configured to be Chrome.

Comment 2 by estaab@chromium.org, May 31 2017

Components: -Infra Infra>Git Infra>SDK

Comment 3 by jif@chromium.org, Jun 2 2017

Note: As a work around, you can duplicate Chrome.app, and rename it to Firefox.app.
Screen Shot 2017-06-02 at 1.11.45 PM.png
59.1 KB View Download
Does this work?

$ BROWSER=open git cl web

Python is embedding some AppleScript stuff to open the application, but if you provide $BROWSER, it should call that on the command line. `open $URL` does the job just as well.
Labels: -Pri-3 Pri-2
Cc: spqc...@chromium.org
Probably related to AppleScript deprecation. Is your default browser the beta channel?
#6: I'm on stable. Since this happened just after an OS update, I'd be tempted to say it is unrelated to the version of Chrome but more related to OS update or python update.
Workaround in #4 works for me, so I'm going to use this.

Comment 9 by aga...@chromium.org, Jul 26 2017

Cc: smut@chromium.org kkhorimoto@chromium.org sergeybe...@chromium.org baxley@chromium.org
 Issue 749187  has been merged into this issue.
Huh, that sucks. It's just using python's default "webbrowswer" package:
https://cs.chromium.org/chromium/tools/depot_tools/git_cl.py?l=5632
https://docs.python.org/2/library/webbrowser.html

Looks like this is an instance of https://bugs.python.org/issue30392, which reports that it is fixed in the next version of OSX
Status: Fixed (was: Untriaged)
I can no longer reproduce so I'm assuming agable@ was right and this is now fixed.

Sign in to add a comment