New issue
Advanced search Search tips

Issue 722431 link

Starred by 10 users

Issue metadata

Status: Duplicate
Merged: issue 617931
Owner: ----
Closed: Jul 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Cookies not saved in headless mode

Project Member Reported by skyos...@chromium.org, May 15 2017

Issue description

To reproduce:

$ cr run headless_shell --user-data-dir=/tmp/testing --screenshot https://jsfiddle.net/6wzn6vwo/ && xdg-open screenshot.png

(Repeat 2x -- second screenshot should show cookie from earlier run)
 
Status: Available (was: Untriaged)

Comment 2 Deleted

It would be really nice if you could manually choose an existing Chrome profile when using "--headless", currently you cannot.
@johnbarr, All chrome profiles are stored on disk. You can see the exact profile path you're currently using on `about:version`.
You can pass that path to `--user-data-dir=` to use it.
paulirish@ Yupp, I am aware of the --profile-directory and --user-data-dir params, but they don't seem to work with headless chrome. My repro case is below:

On version Version 60.0.3112.50 of chrome:
$ google-chrome-beta --profile-directory="Profile 2" "--user-data-dir=.config/google-chrome-beta/"
will correctly open that profile, which is signed into a google account

However the following:
$ google-chrome-beta --headless --disable-gpu --profile-directory="Profile 2" "--user-data-dir=.config/google-chrome-beta/" --screenshot http://accounts.google.com
will produce the attached screenshot, which is not signed into a google account.
screenshot.png
24.1 KB View Download
Mergedinto: 617931
Status: Duplicate (was: Available)

Sign in to add a comment