New issue
Advanced search Search tips

Issue 709785 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Dec 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

There is no way to get the version of chromium from the headless shell.

Reported by lem...@gmail.com, Apr 9 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.138 Safari/537.36 Vivaldi/1.8.770.54

Steps to reproduce the problem:
1. Have an instance of the chromium `headless_shell` binary.
2. Want to get the version for things like a bug-report.

What is the expected behavior?
I'd *expect* something like `headless_shell --version`, `headless_shell -v` or /some/ way to find out anything about the headless binary to do /something/.

What went wrong?
Probably not implemented yet, I assume.

Actually, `headless_shell --help` does nothing as well, which is non-optimal. I don't even know what arguments headless_shell supports at all.

If there's a CLI parsing apparatus (which there is, because things like `--remote-debugging-port` are supported, it should be able to output it's parsed args into a help dialog somehow.

Did this work before? No 

Chrome version: N/A  Channel: dev
OS Version: N/A
Flash Version: N/A
 
Owner: skyos...@chromium.org
Status: Assigned (was: Unconfirmed)
Over to skyostil@ for triaging.
Cc: skyos...@chromium.org
Labels: Proj-Headless
Owner: ----
Status: Available (was: Assigned)
Unfortunately Chrome doesn't have a great way to summarize command line arguments at the moment. This is an automatically updated reference, but not everything is supposed in headless mode: http://peter.sh/experiments/chromium-command-line-switches/

As to supporting --version, ideally most folks should be using a regular Chrome binary with the --headless flag instead of headless_shell. With that you can just ask your package manager which version you have (e.g., dpkg -l google-chrome). Alternatively if you're embedding the headless library into your application, you can use PRODUCT_VERSION[1] to keep track of the browser version.

[1] https://cs.chromium.org/chromium/src/out/Debug/gen/headless/public/version.h?type=cs&sq=package:chromium&l=10
Components: Internals>Headless
Status: WontFix (was: Available)
You can attach to headless over the protocol and query /json/version

Sign in to add a comment