Repo cclient is a server-side chromium setup.
Using headless mode, we serve a browser session over HTTPS, so clients can send key events and receive rendered bitmaps and not need to run arbitrary insecure Javascript code.
Steps to build chromium with headless:
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH=$PATH:$(pwd)/depot_tools
fetch chromium && cd src/
./build/install-build-deps.sh
gclient runhooks
mkdir -p out/Debug
echo 'import("//build/args/headless.gn")' > out/Debug/args.gn
gn gen out/Debug
ninja -C out/Debug headless_shell
Then the shell can be started with out/Debug/headless_shell https://www.google.com
.
Then navigate to http://127.0.0.1:9222 with your browser.